From 1471ebc3f39fb5f71a5f6d12dcf0a46435be21ac Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 2 Feb 2017 20:16:08 +0100 Subject: [PATCH] Fixed escaping issue --- .../install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js | 4 ++-- wcfsetup/install/lang/de.xml | 2 +- wcfsetup/install/lang/en.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js index 8bce8ab7fe..0100a4822c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Redactor/Mention.js @@ -1,4 +1,4 @@ -define(['Ajax', 'Environment', 'Ui/CloseOverlay'], function(Ajax, Environment, UiCloseOverlay) { +define(['Ajax', 'Environment', 'StringUtil', 'Ui/CloseOverlay'], function(Ajax, Environment, StringUtil, UiCloseOverlay) { "use strict"; var _dropdownContainer = null; @@ -385,7 +385,7 @@ define(['Ajax', 'Environment', 'Ui/CloseOverlay'], function(Ajax, Environment, U link = elCreate('a'); link.addEventListener('mousedown', callbackClick); link.className = 'box16'; - link.innerHTML = '' + user.icon + ' ' + user.label + ''; + link.innerHTML = '' + user.icon + ' ' + StringUtil.escapeHTML(user.label) + ''; elData(link, 'user-id', user.objectID); elData(link, 'username', user.label); diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 1a0f16488c..6bff307de5 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -2049,7 +2049,7 @@ Erlaubte Dateiendungen: {', '|implode:$attachmentHandler->getFormattedAllowedExt - + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index bd7be63699..e43b7dc502 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -2009,7 +2009,7 @@ Allowed extensions: {', '|implode:$attachmentHandler->getFormattedAllowedExtensi - + -- 2.20.1