1
0
mirror of synced 2025-01-17 22:11:41 +03:00

pookey: fixes #83

This commit is contained in:
pookey 2006-10-02 01:30:08 +00:00
parent 04a3cb9f63
commit aa25b57eda

View File

@ -32,6 +32,12 @@ class Doctrine_Validator_Email {
$sub_domain = "($domain_ref|$domain_literal)";
$word = "($atom|$quoted_string)";
$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)*";
$addr_spec = "$local_part\\x40$domain";