From 520234e4dfe94048fcbf7dd283e142b8ac781582 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 22 May 2020 14:56:11 +0200 Subject: [PATCH] Fix regular expression in AnchorFunctionTemplatePlugin --- .../template/plugin/AnchorFunctionTemplatePlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}'."); } -- 2.20.1