From ba652ef7b6974e3c91820020157b83eba490e3f0 Mon Sep 17 00:00:00 2001 From: tianya Date: Wed, 11 May 2022 15:05:01 +0800 Subject: [PATCH] Update code.helper.php --- src/system/helpers/code.helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/helpers/code.helper.php b/src/system/helpers/code.helper.php index eb1a176d..36e9f70a 100644 --- a/src/system/helpers/code.helper.php +++ b/src/system/helpers/code.helper.php @@ -420,7 +420,7 @@ function checkCode($code) $id = token_name($token[0]); switch ($id) { case ('T_STRING'): - if (in_array($token[1], $allowedCalls) === false) { + if (in_array(strtolower($token[1]), $allowedCalls) === false) { $errors[$i]['name'] = 'Illegal function: ' . $token[1]; $errors[$i]['line'] = $token[2]; }