From 084c1d0d5e6c8ec19ee92d424ac2f014638b8025 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 9 Jan 2015 19:06:14 +0100 Subject: [PATCH] Improve escaping in {lang} RegExp in WCF.Template --- wcfsetup/install/files/js/WCF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index fdbda56b02..276508f56c 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -4650,7 +4650,7 @@ WCF.Template = Class.extend({ return "' + " + content + " + '"; }) // {lang}foo{/lang} - .replace(/{lang}(.+?){\/lang}/g, function(_, content) { + .replace(/\{lang\}(.+?)\{\/lang\}/g, function(_, content) { return "' + WCF.Language.get('" + unescape(content) + "') + '"; }) // {if} -- 2.20.1