Reintroduce `ucfirst` to the allowed template modifiers
authorAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 15:24:43 +0000 (17:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 11 Aug 2023 15:24:43 +0000 (17:24 +0200)
This is often used in forms to add or edit items.

See #5512

wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 81597306c197df3b8129e6ec4bfb8dddf02f6a64..7bef324ea632ecbe95d24af1a3868418fad48831 100644 (file)
@@ -98,6 +98,7 @@ class TemplateScriptingCompiler
         'str_replace',
         'str_starts_with',
         'trim',
+        'ucfirst',
         'var_dump',
         'version_compare',
         'wcfDebug',