Skip to content

Commit

Permalink
Merge pull request #27 from nextcloud/develop
Browse files Browse the repository at this point in the history
Fix
  • Loading branch information
Ivansss committed Mar 26, 2020
2 parents ea79050 + 14c3311 commit d254d19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion NCCommunication/NCCommunication.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ import SwiftyJSON
if let directory = subJson["directory"].bool { file.directory = directory }
if let etag = subJson["etag"].string { file.etag = etag }
if let favorite = subJson["favorite"].bool { file.favorite = favorite }
if let fileId = subJson["fileId"].string { file.fileId = fileId }
if let fileId = subJson["fileId"].int { file.fileId = String(fileId) }
if let hasPreview = subJson["hasPreview"].bool { file.hasPreview = hasPreview }
if let mimetype = subJson["mimetype"].string { file.contentType = mimetype }
if let name = subJson["name"].string { file.fileName = name }
Expand Down
2 changes: 1 addition & 1 deletion NCCommunication/NCCommunicationCommon.swift
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ import Alamofire

func encodeUrlString(_ string: String) -> URLConvertible? {

let allowedCharacterSet = (CharacterSet(charactersIn: " ").inverted)
let allowedCharacterSet = (CharacterSet(charactersIn: " #").inverted)
if let escapedString = string.addingPercentEncoding(withAllowedCharacters: allowedCharacterSet) {
var url: URLConvertible
do {
Expand Down

0 comments on commit d254d19

Please sign in to comment.