From 25a4930db96509d5484c92917c9dc732de0eeddc Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 15 May 2026 19:41:59 +0200 Subject: [PATCH 1/2] fix(files_sharing): do not double escape special characters - fixes https://github.com/nextcloud/server/issues/60163 The strings are already escaped by Vue so no need to escape in the translation method, this will cause double escaping. Signed-off-by: Ferdinand Thiessen --- .../files_sharing/src/public-nickname-handler.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/files_sharing/src/public-nickname-handler.ts b/apps/files_sharing/src/public-nickname-handler.ts index 34de82cd4d592..41d1cd96c9185 100644 --- a/apps/files_sharing/src/public-nickname-handler.ts +++ b/apps/files_sharing/src/public-nickname-handler.ts @@ -16,10 +16,10 @@ import logger from './services/logger.ts' const storage = getBuilder('files_sharing').build() -// Setup file-request nickname header for the uploader /** + * Setup file-request nickname header for the uploader * - * @param nickname + * @param nickname - The nickname to set in the header */ function registerFileRequestHeader(nickname: string) { const uploader = getUploader() @@ -27,10 +27,10 @@ function registerFileRequestHeader(nickname: string) { logger.debug('Nickname header registered for uploader', { headers: uploader.customHeaders }) } -// Callback when a nickname was chosen /** + * Callback when a nickname was chosen * - * @param guest + * @param guest - The guest user with the new nickname */ function onUserInfoChanged(guest: NextcloudUser) { logger.debug('User info changed', { guest }) @@ -57,20 +57,20 @@ window.addEventListener('DOMContentLoaded', () => { const options = { nickname, - notice: t('files_sharing', 'To upload files to {folder}, you need to provide your name first.', { folder }), + notice: t('files_sharing', 'To upload files to {folder}, you need to provide your name first.', { folder }, { escape: false }), subtitle: undefined as string | undefined, - title: t('files_sharing', 'Upload files to {folder}', { folder }), + title: t('files_sharing', 'Upload files to {folder}', { folder }, { escape: false }), } // If the guest already has a nickname, we just make them double check if (nickname) { - options.notice = t('files_sharing', 'Please confirm your name to upload files to {folder}', { folder }) + options.notice = t('files_sharing', 'Please confirm your name to upload files to {folder}', { folder }, { escape: false }) } // If the account owner set their name as public, // we show it in the subtitle if (owner) { - options.subtitle = t('files_sharing', '{ownerDisplayName} shared a folder with you.', { ownerDisplayName }) + options.subtitle = t('files_sharing', '{ownerDisplayName} shared a folder with you.', { ownerDisplayName }, { escape: false }) } // If this is a file request, then we need a nickname From 6b7e8406af1a0963a95d5b51c5c799e34353f7b1 Mon Sep 17 00:00:00 2001 From: nextcloud-command Date: Sat, 16 May 2026 08:11:44 +0000 Subject: [PATCH 2/2] chore(assets): Recompile assets Signed-off-by: nextcloud-command