marinofaggiana 5 tahun lalu
induk
melakukan
1ebfd68da7
1 mengubah file dengan 1 tambahan dan 2 penghapusan
  1. 1 2
      iOSClient/Networking/NCCommunication.swift

+ 1 - 2
iOSClient/Networking/NCCommunication.swift

@@ -88,12 +88,11 @@ class NCCommunication: NSObject {
             case .success( _):
                 var files = [NCFile]()
                 if let data = response.data {
-                    
                     let xml = XML.parse(data)
                     let elements = xml["d:multistatus", "d:response"]
                     for element in elements {
                         let file = NCFile()
-                        if let href = element["d:href"].text { file.path = href }
+                        if let href = element["d:href"].text { file.path = href.removingPercentEncoding ?? "" }
                         files.append(file)
                     }
                 }