diff --git a/src/apps/search.php b/src/apps/search.php index 64e5a31f..2b67ca44 100755 --- a/src/apps/search.php +++ b/src/apps/search.php @@ -57,7 +57,7 @@ $typeid = intval($typeid); $keyword = addslashes(cn_substr($keyword, 30)); $typeid = intval($typeid); //判断关键词是否输入违禁词,在后台-系统设置:禁用关键词添加 -if ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr."#i", $keyword)) { +if ($cfg_notallowstr === '' || preg_match("#".$cfg_notallowstr."#i", $keyword)) { ShowMsg("您输入的关键词存在违禁,请重新填写", "-1"); exit(); }