diff options
author | Pytal <24800714+Pytal@users.noreply.github.com> | 2024-03-22 09:10:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 09:10:30 -0700 |
commit | f3f73ba25552b030d4634a63a3ccc06e59d7bb77 (patch) | |
tree | 4059207db499933dfc052c7a58573b8a0251eeec /apps/files/src | |
parent | c35e2373076ce255b5e93f3e66a0785c34fe2152 (diff) | |
parent | 2a8d9e0074dbbcaaf22a6cff762cd0b4df8c2b52 (diff) | |
download | nextcloud-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.ts | 4 |
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[]) { |