Commit c57cf249 authored by romanb's avatar romanb

Important security fix for the e-mail validator. The D modifier was missing in the pattern.

parent f2484d17
...@@ -74,7 +74,7 @@ class Doctrine_Validator_Email ...@@ -74,7 +74,7 @@ class Doctrine_Validator_Email
$local_part = "$word(\\x2e$word)*"; $local_part = "$word(\\x2e$word)*";
$addr_spec = "$local_part\\x40$domain"; $addr_spec = "$local_part\\x40$domain";
return (bool)preg_match("!^$addr_spec$!", $value); return (bool)preg_match("!^$addr_spec$!D", $value);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment