mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-02-21 13:09:41 +01:00
Custom filters: "trip" condition should be string, not regexp
This commit is contained in:
parent
65a6bb6bfa
commit
abe8da6597
@ -28,7 +28,7 @@ class Filter {
|
|||||||
case 'name':
|
case 'name':
|
||||||
return preg_match($match, $post['name']);
|
return preg_match($match, $post['name']);
|
||||||
case 'trip':
|
case 'trip':
|
||||||
return preg_match($match, $post['trip']);
|
return $match === $post['trip'];
|
||||||
case 'email':
|
case 'email':
|
||||||
return preg_match($match, $post['email']);
|
return preg_match($match, $post['email']);
|
||||||
case 'subject':
|
case 'subject':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user