mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-15 04:52:50 +00:00
敏感词过滤报错
This commit is contained in:
parent
dbdf71ba39
commit
2ec4818d21
@ -24,7 +24,7 @@ function sensitive_words_filter($str)
|
||||
$words = file($file);
|
||||
foreach($words as $word)
|
||||
{
|
||||
$word = str_replace(array("\r\n","\r","\n"," "), '', $word);
|
||||
$word = str_replace(array("\r\n","\r","\n","/","<",">","="," "), '', $word);
|
||||
if (!$word) continue;
|
||||
|
||||
$ret = preg_match("/$word/", $str, $match);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user