add new filter item

This commit is contained in:
jack 2017-10-20 11:33:22 +08:00
parent 60da55ad00
commit 2375e74273
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@ class Filter
public function mixedKeyword($str)
{
$str = trim($str);
$regular = array('/\"/','/\'/','/\\\/','/\#/','/\$/','/\^/','/\*/','/\@/','/!/','/%/','/&/');
$regular = array('/\|/', '/;/','/"/','/\'/','/\\\/', "/\\\'/", '/\\\"/','/\#/','/\$/','/\^/','/\*/','/\@/','/!/','/%/','/&/',
'/</', '/>/', '/(/', '/)/', '/+/', '/\r/', '/\n/', '/,/');
return preg_replace($regular,"",$str);
}