diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-03-22 14:20:17 +0100 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-04-17 12:40:01 +0200 |
commit | 4767830d7acb25614d5fb5415bf9b03918cd7831 (patch) | |
tree | e4a2417c23874f4488a7958b963d1e8335f30548 /apps | |
parent | 8d91e071d7e809753535bd2094927a046e384d51 (diff) | |
download | nextcloud-server-4767830d7acb25614d5fb5415bf9b03918cd7831.tar.gz nextcloud-server-4767830d7acb25614d5fb5415bf9b03918cd7831.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')
-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 0249c27208c..eb54c4c3f82 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[]) { |