|
@@ -1197,7 +1197,7 @@ class NCNetworking: NSObject, NKCommonDelegate {
|
|
|
|
|
|
private func createFolderPlain(fileName: String, serverUrl: String, account: String, urlBase: String, overwrite: Bool, withPush: Bool, completion: @escaping (_ error: NKError) -> Void) {
|
|
|
|
|
|
- var fileNameFolder = NCUtility.shared.removeForbiddenCharactersServer(fileName)
|
|
|
+ var fileNameFolder = NCUtility.shared.removeForbiddenCharacters(fileName)
|
|
|
|
|
|
if !overwrite {
|
|
|
fileNameFolder = NCUtilityFileSystem.shared.createFileName(fileNameFolder, serverUrl: serverUrl, account: account)
|
|
@@ -1490,7 +1490,7 @@ class NCNetworking: NSObject, NKCommonDelegate {
|
|
|
if !metadata.permissions.isEmpty && !permission {
|
|
|
return completion(NKError(errorCode: NCGlobal.shared.errorInternalError, errorDescription: "_no_permission_modify_file_"))
|
|
|
}
|
|
|
- let fileNameNew = NCUtility.shared.removeForbiddenCharactersServer(fileNameNew)
|
|
|
+ let fileNameNew = NCUtility.shared.removeForbiddenCharacters(fileNameNew)
|
|
|
if fileNameNew.isEmpty || fileNameNew == metadata.fileNameView {
|
|
|
return completion(NKError())
|
|
|
}
|