From: Matthias Schmidt Date: Sat, 7 Feb 2015 10:20:38 +0000 (+0100) Subject: Fix template inclusion with application in double quotes X-Git-Tag: 2.1.0_RC_1~62 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6c0a7dfc4b1401a64ff3476fb190f4034ba25cfd;p=GitHub%2FWoltLab%2FWCF.git Fix template inclusion with application in double quotes --- 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;