I'm not sure if this should be a ticket, or if I missed something.

I just received a very confused email from someone who was trying to
register for a user account with her [EMAIL PROTECTED] email address.
Her address, although unquestionably valid, could not get through
CakePHP's email validator.  I looked into it and found out that
sbcglobal.net does not appear to respond to "gethostbynamel" (refer to
http://my.galagzee.com/index.php/2007/10/27/att-sbcglobalnet-misses-a-beat/)
as seen here, lines 503-509 of validation.php:

if ($return === true && preg_match('/@([a-z0-9][a-z0-9\\.\\-]{0,63}\\.
([a-z]*))/', $_this->check, $regs)) {
        $host = gethostbynamel($regs[1]);
        if (is_array($host)) {
                return true;
        }
}
return false;

For now I'm just bypassing the is_array check.  Is there a better way
around this?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to