From 4e0791400071153cb286bcbb888ba01db686edfb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 16 Aug 2021 12:53:46 +0200 Subject: [PATCH] Whitelist `abs` in enterprise mode --- .../lib/system/template/TemplateScriptingCompiler.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php index 07708d2fb8..c4d99c798a 100644 --- a/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php +++ b/wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php @@ -56,6 +56,7 @@ class TemplateScriptingCompiler * @var string[] */ protected $enterpriseFunctions = [ + 'abs', 'addslashes', 'array_diff', 'array_fill', -- 2.20.1