Explorar o código

敏感词过滤报错

sugar1569 %!s(int64=7) %!d(string=hai) anos
pai
achega
2ec4818d21
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);