From: Alexander Ebert Date: Wed, 7 Mar 2012 14:48:45 +0000 (+0100) Subject: Variables passed to {lang} are no longer encoded X-Git-Tag: 2.0.0_Beta_1~1245^2~12 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1d12a8431bf44c0741f89a133a8672a9ea2d61e3;p=GitHub%2FWoltLab%2FWCF.git Variables passed to {lang} are no longer encoded Fixes #505 --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php index 3715d5dab5..d86911ca6b 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php @@ -24,12 +24,7 @@ class LangCompilerTemplatePlugin implements ICompilerTemplatePlugin { public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) { $compiler->pushTag('lang'); - $newTagArgs = array(); - foreach ($tagArgs as $key => $arg) { - $newTagArgs[$key] = 'wcf\util\StringUtil::encodeHTML('.$arg.')'; - } - - $tagArgs = $compiler->makeArgString($newTagArgs); + $tagArgs = $compiler->makeArgString($tagArgs); return "tagStack[] = array('lang', array($tagArgs)); ob_start(); ?>"; }