From 750fed8a4796e26e3966e9a3e417927bc233a23e Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 19 May 2012 12:23:51 +1000 Subject: [PATCH] Custom filters: "trip" condition should be string, not regexp --- inc/filters.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/filters.php b/inc/filters.php index 7204614a..ab48598f 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -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':