Variables passed to {lang} are no longer encoded
authorAlexander Ebert <ebert@woltlab.com>
Wed, 7 Mar 2012 14:48:45 +0000 (15:48 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 7 Mar 2012 14:48:45 +0000 (15:48 +0100)
Fixes #505

wcfsetup/install/files/lib/system/template/plugin/LangCompilerTemplatePlugin.class.php

index 3715d5dab5a4e739a9015435fb3d4d50ac15741a..d86911ca6b34e2a82dbbaa93a02ea30733c6422d 100644 (file)
@@ -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 "<?php \$this->tagStack[] = array('lang', array($tagArgs)); ob_start(); ?>";
        }