Reintroduce `substr` to the allowed template modifiers
authorMarcel Werk <burntime@woltlab.com>
Wed, 16 Aug 2023 09:59:10 +0000 (11:59 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 16 Aug 2023 09:59:10 +0000 (11:59 +0200)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 7bef324ea632ecbe95d24af1a3868418fad48831..8e50ac7a5610acbab997f008bf891e9d0b72fa6c 100644 (file)
@@ -97,6 +97,7 @@ class TemplateScriptingCompiler
         'str_repeat',
         'str_replace',
         'str_starts_with',
+        'substr',
         'trim',
         'ucfirst',
         'var_dump',