From f020c2483f5920a95c1a85bdc39198690e3a8eb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 29 Jul 2014 19:12:56 +0200 Subject: [PATCH] Fix static includes in combination with dynamic template name --- .../lib/system/template/TemplateScriptingCompiler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 16021b3328..9fbd048d0d 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -759,7 +759,7 @@ class TemplateScriptingCompiler { $sandbox = ($sandbox === 'true' || $sandbox === true || $sandbox == 1); $staticInclude = true; - if ($sandbox || $assignVar !== false || $once !== false || strpos($application, '$') !== false) { + if ($sandbox || $assignVar !== false || $once !== false || strpos($application, '$') !== false || strpos($file, '$') !== false) { $staticInclude = false; } -- 2.20.1