소스 검색

敏感词过滤报错

sugar1569 7 년 전
부모
커밋
2ec4818d21
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common.php

+ 1 - 1
application/common.php

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