diff --git a/utility/convert/include/global.func.php b/utility/convert/include/global.func.php index 29cb4bab50ce93a9cc7aaaa250307df793946b0f..b445a0b1a070beb891f4bab63d8ca54b3ea37111 100644 --- a/utility/convert/include/global.func.php +++ b/utility/convert/include/global.func.php @@ -592,7 +592,7 @@ function buildarray($array, $level = 0, $pre = '$_config') { } foreach ($array as $key => $val) { - if(!preg_match("/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/", $key)) { + if(!preg_match("/^[a-zA-Z0-9_\x7f-\xff]+$/", $key)) { continue; } diff --git a/utility/update.php b/utility/update.php index 7e3161480139454301794a1e3a0bcd5d88220b4f..7838301e318b95ebcf337de6a8e79e7e4ab67a94 100644 --- a/utility/update.php +++ b/utility/update.php @@ -2204,7 +2204,7 @@ function buildarray($array, $level = 0, $pre = '$_config') { } foreach ($array as $key => $val) { - if(!preg_match("/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/", $key)) { + if(!preg_match("/^[a-zA-Z0-9_\x7f-\xff]+$/", $key)) { continue; }