Add contains operator

This commit is contained in:
Andrew Garrett 2008-06-27 08:50:03 +00:00
parent 08890163af
commit 554f8ff412

View file

@ -210,6 +210,8 @@ class AbuseFilter {
return $value < $parameters;
} elseif ($operator == 'regex') {
return preg_match( $parameters, $value );
} elseif ($operator == 'contains') {
return strpos( $value, $parameters );
} else {
return false;
}