diff --git a/apps/files_sharing/src/collaborationresourceshandler.js b/apps/files_sharing/src/collaborationresourceshandler.js index ef7b271f78..8a668b3ce9 100644 --- a/apps/files_sharing/src/collaborationresourceshandler.js +++ b/apps/files_sharing/src/collaborationresourceshandler.js @@ -14,7 +14,6 @@ window.OCP.Collaboration.registerType('file', { }, false); }); }, - /** used in "Link to a {typeString}" */ - typeString: t('files_sharing', 'file'), + typeString: t('files_sharing', 'Link to a file'), typeIconClass: 'icon-files-dark' }); diff --git a/core/src/OCP/collaboration.js b/core/src/OCP/collaboration.js index 394e1d3451..efc495b8bf 100644 --- a/core/src/OCP/collaboration.js +++ b/core/src/OCP/collaboration.js @@ -64,7 +64,7 @@ export default { return types[type].typeIconClass || ''; }, getLabel(type) { - return t('core', 'Link to a {label}', { label: types[type].typeString || type }, 1) + return escapeHTML(types[type].typeString || type) }, getLink(type, id) { /* TODO: Allow action to be executed instead of href as well */