add new filter item
This commit is contained in:
parent
60da55ad00
commit
2375e74273
|
@ -13,7 +13,8 @@ class Filter
|
||||||
public function mixedKeyword($str)
|
public function mixedKeyword($str)
|
||||||
{
|
{
|
||||||
$str = trim($str);
|
$str = trim($str);
|
||||||
$regular = array('/\"/','/\'/','/\\\/','/\#/','/\$/','/\^/','/\*/','/\@/','/!/','/%/','/&/');
|
$regular = array('/\|/', '/;/','/"/','/\'/','/\\\/', "/\\\'/", '/\\\"/','/\#/','/\$/','/\^/','/\*/','/\@/','/!/','/%/','/&/',
|
||||||
|
'/</', '/>/', '/(/', '/)/', '/+/', '/\r/', '/\n/', '/,/');
|
||||||
return preg_replace($regular,"",$str);
|
return preg_replace($regular,"",$str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue