Browse Source

Update search.php

tags/6.5.6
叙述、别离 5 days ago
parent
commit
bfc3fa8abe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/apps/search.php

+ 1
- 1
src/apps/search.php View File

@@ -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();
}


Loading…
Cancel
Save