From: Alexander Ebert Date: Tue, 24 Apr 2012 18:02:49 +0000 (+0200) Subject: Fixed sandbox mode X-Git-Tag: 2.0.0_Beta_1~1145^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=af3d6cb627ccfd3a6289c97c493ad24df3b41f6b;p=GitHub%2FWoltLab%2FWCF.git Fixed sandbox mode --- diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index f781b15865..87a162e09e 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -742,7 +742,7 @@ class TemplateScriptingCompiler { unset($args['append']); } - $sandbox = false; + $sandbox = 0; if (isset($args['sandbox'])) { $sandbox = $args['sandbox']; unset($args['sandbox']); @@ -810,7 +810,7 @@ class TemplateScriptingCompiler { $phpCode .= "ob_start();\n"; } - $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), '.($sandbox ? 1 : 0).', $this->v[\'__PACKAGE_ID\']);'."\n"; + $phpCode .= '$this->includeTemplate('.$file.', array('.$argString.'), ('.$sandbox.' ? 1 : 0), $this->v[\'__PACKAGE_ID\']);'."\n"; if ($assignVar !== false) { $phpCode .= '$this->'.($append ? 'append' : 'assign').'('.$assignVar.', ob_get_clean());'."\n";