Fix regular expression in AnchorFunctionTemplatePlugin
authorMatthias Schmidt <gravatronics@live.com>
Fri, 22 May 2020 12:56:11 +0000 (14:56 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 22 May 2020 12:56:11 +0000 (14:56 +0200)
wcfsetup/install/files/lib/system/template/plugin/AnchorFunctionTemplatePlugin.class.php

index 1f517bdad0eed8a53bfaf7e00cc590fa317ce0e8..75c6efdb75521b54b4ebb421db388eb239454f90 100644 (file)
@@ -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}'.");
                        }