From ad730a174c6c0435d596f5393d97aa0fcbc23ee9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Sat, 29 Mar 2025 15:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=BC=BA=E6=90=9C=E7=B4=A2=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/diy.php | 4 ++-- src/apps/search.php | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/apps/diy.php b/src/apps/diy.php index 05dc8700..18052f94 100755 --- a/src/apps/diy.php +++ b/src/apps/diy.php @@ -67,12 +67,12 @@ if ($action == 'post') { } } //判断$name是否输入违禁词,在后台-系统设置:禁用关键词添加,$name改成您表单字段标识,恢复注释代码使用 - /*if ($name != '' && preg_match("#".$cfg_notallowstr."#i", $name)) { + /*if ($name === '' && preg_match("#".$cfg_notallowstr."#i", $name)) { ShowMsg("您输入的信息存在违禁,请重新填写", "-1"); exit(); }*/ //判断$message是否大于70字符则提交失败,$message改成您表单字段标识,恢复注释代码使用 - /*if ($message != '' && strlen($message) > 70) { + /*if ($message === '' && strlen($message) > 70) { showmsg('您输入的信息太多了,请重新填写', '-1'); exit(); }*/ diff --git a/src/apps/search.php b/src/apps/search.php index eac84fbd..904442b6 100755 --- a/src/apps/search.php +++ b/src/apps/search.php @@ -61,10 +61,6 @@ if ($keyword != '' && ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr ShowMsg("您输入的关键词存在违禁,请重新填写", "-1"); exit(); } -if (($keyword != '' && strlen($keyword) < 2) && empty($typeid)) { - ShowMsg('您输入的关键词太少了,请重新填写', '-1'); - exit(); -} //检查搜索间隔时间 $ip = GetIP(); $now = time();