Fix special characters when renaming to a conflict

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/1590/head
Joas Schilling 8 years ago
parent 99076a8c0d
commit 0ecaf8e602
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8

@ -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