Fix static includes in combination with dynamic template name
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 29 Jul 2014 17:12:56 +0000 (19:12 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 29 Jul 2014 17:12:56 +0000 (19:12 +0200)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 16021b332835d3cc2409a47c29f3e36be3b86633..9fbd048d0dcc8e73442aeecb11f65091c0085241 100644 (file)
@@ -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;
                }