Fixing WCF.Template
authorTim Düsterhus <timwolla@arcor.de>
Mon, 5 Dec 2011 13:21:21 +0000 (14:21 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Mon, 5 Dec 2011 13:21:50 +0000 (14:21 +0100)
wcfsetup/install/files/js/WCF.js

index add248259cc6f7d8483541872c9d0e996b4b2364..af76c6e2ef3d8974c8065a782f1e710849f643e7 100644 (file)
@@ -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]);
                }