From: Tim Düsterhus Date: Mon, 5 Dec 2011 13:21:21 +0000 (+0100) Subject: Fixing WCF.Template X-Git-Tag: 2.0.0_Beta_1~1525^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9fcc9ae57e87ffb83e447f993bd666e74d348070;p=GitHub%2FWoltLab%2FWCF.git Fixing WCF.Template --- diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index add248259c..af76c6e2ef 100644 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -2164,7 +2164,7 @@ WCF.Template.prototype = { // insert them :) for (var $key in $variables) { - $result = $result.replace(new RegExp(WCF.String.escapeRegExp('{$'+$key+'}'), 'g'), WCF.String.escapeHTML($variables[$key])); + $result = $result.replace(new RegExp(WCF.String.escapeRegExp('{$'+$key+'}'), 'g'), WCF.String.escapeHTML(new String($variables[$key]))); $result = $result.replace(new RegExp(WCF.String.escapeRegExp('{#$'+$key+'}'), 'g'), WCF.String.formatNumeric($variables[$key])); $result = $result.replace(new RegExp(WCF.String.escapeRegExp('{@$'+$key+'}'), 'g'), $variables[$key]); }