From: Matthias Schmidt Date: Fri, 22 May 2020 12:56:11 +0000 (+0200) Subject: Fix regular expression in AnchorFunctionTemplatePlugin X-Git-Tag: 5.3.0_Alpha_1~279 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=520234e4dfe94048fcbf7dd283e142b8ac781582;p=GitHub%2FWoltLab%2FWCF.git Fix regular expression in AnchorFunctionTemplatePlugin --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php index 1f517bdad0..75c6efdb75 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php @@ -98,7 +98,7 @@ class AnchorFunctionTemplatePlugin implements IFunctionTemplatePlugin { $classes = []; $additionalParameters = ''; foreach ($tagArgs as $name => $value) { - if (!preg_match('~[a-z]+([A-z]+)+~', $name)) { + if (!preg_match('~^[a-z]+([A-z]+)+$~', $name)) { throw new \InvalidArgumentException("Invalid additional argument name '{$name}'."); }