Browse Source

Update filter.inc.php

tags/6.5.8
tianya 1 week ago
parent
commit
0321cd7fd7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/filter.inc.php

+ 1
- 1
src/system/filter.inc.php View File

@@ -25,7 +25,7 @@ function _FilterAll($fk, &$svar)
$svar[$_k] = _FilterAll($fk, $_v);
}
} else {
if (preg_match("#".$cfg_notallowstr."#i", $svar)) {
if ($cfg_notallowstr != '' && preg_match("#".$cfg_notallowstr."#i", $svar)) {
ShowMsg("{$fk}字段中包含禁用词", '-1');
exit();
}


Loading…
Cancel
Save