aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorPytal <24800714+Pytal@users.noreply.github.com>2024-03-22 09:10:30 -0700
committerGitHub <noreply@github.com>2024-03-22 09:10:30 -0700
commitf3f73ba25552b030d4634a63a3ccc06e59d7bb77 (patch)
tree4059207db499933dfc052c7a58573b8a0251eeec /apps/files/src
parentc35e2373076ce255b5e93f3e66a0785c34fe2152 (diff)
parent2a8d9e0074dbbcaaf22a6cff762cd0b4df8c2b52 (diff)
downloadnextcloud-server-f3f73ba25552b030d4634a63a3ccc06e59d7bb77.tar.gz
nextcloud-server-f3f73ba25552b030d4634a63a3ccc06e59d7bb77.zip
Merge pull request #44407 from nextcloud/fix/files-copy-move-escaping
fix(files): Do not escape file names in the file picker
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/actions/moveOrCopyAction.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/src/actions/moveOrCopyAction.ts b/apps/files/src/actions/moveOrCopyAction.ts
index 69158958aab..1483568ec0e 100644
--- a/apps/files/src/actions/moveOrCopyAction.ts
+++ b/apps/files/src/actions/moveOrCopyAction.ts
@@ -212,7 +212,7 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes:
if (action === MoveCopyAction.COPY || action === MoveCopyAction.MOVE_OR_COPY) {
buttons.push({
- label: target ? t('files', 'Copy to {target}', { target }) : t('files', 'Copy'),
+ label: target ? t('files', 'Copy to {target}', { target }, undefined, { escape: false, sanitize: false }) : t('files', 'Copy'),
type: 'primary',
icon: CopyIconSvg,
async callback(destination: Node[]) {
@@ -237,7 +237,7 @@ const openFilePickerForAction = async (action: MoveCopyAction, dir = '/', nodes:
if (action === MoveCopyAction.MOVE || action === MoveCopyAction.MOVE_OR_COPY) {
buttons.push({
- label: target ? t('files', 'Move to {target}', { target }) : t('files', 'Move'),
+ label: target ? t('files', 'Move to {target}', { target }, undefined, { escape: false, sanitize: false }) : t('files', 'Move'),
type: action === MoveCopyAction.MOVE ? 'primary' : 'secondary',
icon: FolderMoveSvg,
async callback(destination: Node[]) {