From e3eb0be76db75d08064d77b9a7cac68502295a85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=91=A8=E9=83=A8=E8=90=BD?= Date: Sun, 31 Jan 2021 10:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E8=A1=A8=E5=89=8D?= =?UTF-8?q?=E7=BC=80=E6=A0=BC=E5=BC=8F=E9=99=90=E5=88=B6=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E5=AD=97=E7=AC=A6=E4=B8=BA=20=5F=20,=20?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E5=BD=A2=E5=A6=82=20pre=5F1=20=E7=9A=84?= =?UTF-8?q?=E8=A1=A8=E5=89=8D=E7=BC=80=E4=BA=A7=E7=94=9F=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=A4=84=E7=90=86=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/install/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload/install/index.php b/upload/install/index.php index 2b575f4c5..2995c0088 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); } -- Gitee