Whitelist `abs` in enterprise mode
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 16 Aug 2021 10:53:46 +0000 (12:53 +0200)
committerGitHub <noreply@github.com>
Mon, 16 Aug 2021 10:53:46 +0000 (12:53 +0200)
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php

index 07708d2fb8a62c3295456bfb58debb0c9dad7b5b..c4d99c798a7aac76b44a3cf164a3ab7809ace5c2 100644 (file)
@@ -56,6 +56,7 @@ class TemplateScriptingCompiler
      * @var string[]
      */
     protected $enterpriseFunctions = [
+        'abs',
         'addslashes',
         'array_diff',
         'array_fill',