Merge pull request #1590 from nextcloud/issue-1432-special-chars-on-name-conflict

Fix special characters when renaming to a conflict
pull/1613/head
Morris Jobke 8 years ago committed by GitHub
commit 62d5daa94f

@ -1941,7 +1941,9 @@
// Files.isFileNameValid(filename) throws an exception itself
OCA.Files.Files.isFileNameValid(filename);
if (self.inList(filename)) {
throw t('files', '{newName} already exists', {newName: filename});
throw t('files', '{newName} already exists', {newName: filename}, undefined, {
escape: false
});
}
}
return true;

@ -146,7 +146,9 @@
if (!Files.isFileNameValid(filename)) {
// Files.isFileNameValid(filename) throws an exception itself
} else if (self.fileList.inList(filename)) {
throw t('files', '{newname} already exists', {newname: filename});
throw t('files', '{newName} already exists', {newName: filename}, undefined, {
escape: false
});
} else {
return true;
}

Loading…
Cancel
Save