From 6c0a7dfc4b1401a64ff3476fb190f4034ba25cfd Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 7 Feb 2015 11:20:38 +0100 Subject: [PATCH] Fix template inclusion with application in double quotes --- .../lib/system/template/TemplateScriptingCompiler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 9fbd048d0d..c4775b5697 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -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; -- 2.20.1