diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:20:17 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:20:17 +0100 |
commit | b9caf242287ffc917d41000a00d2c9b160ced9a6 (patch) | |
tree | f1e593c26eab114248d90c5d1dd5a776b3bcd524 /apps/files/src | |
parent | 4121b841de5cdeb204c166f8f23f1621c00a9102 (diff) | |
download | nextcloud-server-b9caf242287ffc917d41000a00d2c9b160ced9a6.tar.gz nextcloud-server-b9caf242287ffc917d41000a00d2c9b160ced9a6.zip |
fix(files): Do not escape file names for filepicker buttons
The text is already escaped by Vue, so we should not escape or sanitize the filename.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
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[]) { |