Custom filters: "trip" condition should be string, not regexp
This commit is contained in:
parent
1593916907
commit
750fed8a47
@ -28,7 +28,7 @@ class Filter {
|
||||
case 'name':
|
||||
return preg_match($match, $post['name']);
|
||||
case 'trip':
|
||||
return preg_match($match, $post['trip']);
|
||||
return $match === $post['trip'];
|
||||
case 'email':
|
||||
return preg_match($match, $post['email']);
|
||||
case 'subject':
|
||||
|
Loading…
Reference in New Issue
Block a user