From 1d12a8431bf44c0741f89a133a8672a9ea2d61e3 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 7 Mar 2012 15:48:45 +0100 Subject: [PATCH] Variables passed to {lang} are no longer encoded Fixes #505 --- .../template/plugin/LangCompilerTemplatePlugin.class.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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(); ?>"; } -- 2.20.1