mirror of
https://github.com/nextcloud/server.git
synced 2024-08-06 15:06:39 +02:00
Fix special characters when renaming to a conflict
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
99076a8c0d
commit
0ecaf8e602
@ -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…
Reference in New Issue
Block a user