diff --git a/src/apps/diy.php b/src/apps/diy.php index 4c806a79..380b7158 100755 --- a/src/apps/diy.php +++ b/src/apps/diy.php @@ -66,7 +66,7 @@ if ($action == 'post') { } } } - //判断$name是否输入中文包括繁体则提交失败,$name改成您表单字段标识,恢复注释代码使用 + //判断$name是否输入违禁词,在后台-系统设置:禁用关键词添加,$name改成您表单字段标识,恢复注释代码使用 /*if ($name != '' && preg_match("#".$cfg_notallowstr."#i", $name)) { ShowMsg("您输入的信息存在违禁,请重新填写", "-1"); exit(); diff --git a/src/apps/search.php b/src/apps/search.php index 4bb81ac9..eac84fbd 100755 --- a/src/apps/search.php +++ b/src/apps/search.php @@ -56,6 +56,7 @@ if (empty($typeid)) { $typeid = intval($typeid); $keyword = addslashes(cn_substr($keyword, 30)); $typeid = intval($typeid); +//判断关键词是否输入违禁词,在后台-系统设置:禁用关键词添加 if ($keyword != '' && ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr."#i", $keyword))) { ShowMsg("您输入的关键词存在违禁,请重新填写", "-1"); exit();