Commit aa25b57e authored by pookey's avatar pookey

pookey: fixes #83

parent 04a3cb9f
...@@ -32,6 +32,12 @@ class Doctrine_Validator_Email { ...@@ -32,6 +32,12 @@ class Doctrine_Validator_Email {
$sub_domain = "($domain_ref|$domain_literal)"; $sub_domain = "($domain_ref|$domain_literal)";
$word = "($atom|$quoted_string)"; $word = "($atom|$quoted_string)";
$domain = "$sub_domain(\\x2e$sub_domain)+"; $domain = "$sub_domain(\\x2e$sub_domain)+";
/*
following psudocode to allow strict checking - ask pookey about this if you're puzzled
if ($this->getValidationOption('strict_checking') == true)
$domain = "$sub_domain(\\x2e$sub_domain)*";
*/
$local_part = "$word(\\x2e$word)*"; $local_part = "$word(\\x2e$word)*";
$addr_spec = "$local_part\\x40$domain"; $addr_spec = "$local_part\\x40$domain";
......
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