From 85a549f9c61fd387cf2f09abd0abc4c87aef45af Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 13 May 2015 03:38:58 +0200 Subject: [PATCH] fix blacklisted() to treat $mosquitoes as literals (not regexps) --- include/email-validation.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/email-validation.inc b/include/email-validation.inc index 9b1ba98f2a..6e1d03c03b 100644 --- a/include/email-validation.inc +++ b/include/email-validation.inc @@ -99,6 +99,6 @@ function blacklisted($email) { 'graduatecentral', ); foreach ($mosquitoes as $m) { - if (preg_match('/'.$m.'/i',$email)) return true; + if (preg_match('/'.preg_quote($m, '/').'/i',$email)) return true; } }