Fix template inclusion with application in double quotes
authorMatthias Schmidt <gravatronics@live.com>
Sat, 7 Feb 2015 10:20:38 +0000 (11:20 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 7 Feb 2015 10:20:38 +0000 (11:20 +0100)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 9fbd048d0dcc8e73442aeecb11f65091c0085241..c4775b569712b5555f07ca26d0b0961a023ad6dd 100644 (file)
@@ -746,8 +746,8 @@ class TemplateScriptingCompiler {
                        unset($args['application']);
                }
                
-               if (preg_match('~^\'(.*)\'$~', $application, $matches)) {
-                       $application = $matches[1];
+               if (preg_match('~^(\'|\")(.*)\1$~', $application, $matches)) {
+                       $application = $matches[2];
                }
                
                $sandbox = false;