diff --git a/src/Converter/ConditionBuilder.php b/src/Converter/ConditionBuilder.php index 97eefa24..2af20fcc 100644 --- a/src/Converter/ConditionBuilder.php +++ b/src/Converter/ConditionBuilder.php @@ -16,7 +16,7 @@ class ConditionBuilder /** * @var string[] */ - private array $functionWhitelist = [ + private array $allowedFunctions = [ 'addslashes', 'array_*', 'chr', 'date', 'empty', 'explode', 'htmlentities', 'htmlspecialchars', 'implode', 'in_array', 'is_*', 'isset', 'lcfirst', 'ltrim', 'mb_*', 'number_format', 'ord', 'preg_*', 'rtrim', 'sprintf', 'str_*', 'strchr', 'strcmp', 'strcoll', 'strcspn', 'stripcslashes', @@ -186,7 +186,7 @@ private function isFunctionAllowed(string $function): bool { $allowed = false; - foreach ($this->functionWhitelist as $pattern) { + foreach ($this->allowedFunctions as $pattern) { if (fnmatch($pattern, $function)) { $allowed = true; break;