Browse Source

Update code.helper.php

tags/6.2.0
tianya 3 years ago
parent
commit
ba652ef7b6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/helpers/code.helper.php

+ 1
- 1
src/system/helpers/code.helper.php View File

@@ -420,7 +420,7 @@ function checkCode($code)
$id = token_name($token[0]); $id = token_name($token[0]);
switch ($id) { switch ($id) {
case ('T_STRING'): 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]['name'] = 'Illegal function: ' . $token[1];
$errors[$i]['line'] = $token[2]; $errors[$i]['line'] = $token[2];
} }


Loading…
Cancel
Save