diff --git a/upload/install/index.php b/upload/install/index.php index 2b575f4c52896ddc21e9b7fc5219193810b7f000..2995c00880a512e34e14222f152bbc9c32123af0 100644 --- a/upload/install/index.php +++ b/upload/install/index.php @@ -321,7 +321,8 @@ if($method == 'show_license') { } } - if(strpos($tablepre, '.') !== false || intval($tablepre[0])) { + // 表前缀格式限制最后一个字符为 _ , 避免形如 pre_1 的表前缀产生导致程序处理出错. + if(strpos($tablepre, '.') !== false || intval($tablepre[0]) || strrpos($tablepre, '_') !== strlen($tablepre)) { show_msg('tablepre_invalid', $tablepre, 0); }