Browse Source

去掉警告的参数

zhouzhijian 9 years ago
parent
commit
02799785ce
1 changed files with 2 additions and 2 deletions
  1. 2 2
      helper/sensitive_word/dfa.php

+ 2 - 2
helper/sensitive_word/dfa.php

@@ -19,7 +19,7 @@ class DFAFilter
         $this->loadFile();
         $this->loadFile();
     }
     }
 
 
-    private function loadFile($dictPath)
+    private function loadFile()
     {
     {
         $this->dict = array();
         $this->dict = array();
         $this->initDict();
         $this->initDict();
@@ -57,7 +57,7 @@ class DFAFilter
         fclose($handle);
         fclose($handle);
     }
     }
 
 
-    public function filter($str, $maxDistance = 5)
+    public function filter($str, $maxDistance = 10)
     {
     {
         if ($maxDistance < 1) {
         if ($maxDistance < 1) {
             $maxDistance = 1;
             $maxDistance = 1;