[turba] Turba doesn't allow localhost email addresses

Jan Schneider jan at horde.org
Mon Apr 2 22:13:58 UTC 2012


Zitat von Ralf Lang <lang at b1-systems.de>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Turba's Email field doesn't allow localhost addresses or any addresses
> which just have a top level domain but now lower level.
>
> This is caused by the Horde_Form_Type::_isRfc3696ValidEmailAddress
> parser, line 2002 (because these are not public internet addresses)
>
> RFC 3696 doesn't say an email address must be on a public domain.
> In fact, @localhost is a valid email address for local delivery.
>
> Do you think we should remove that requirement?

I think we should leave it. PHP's FILTER_VALIDATE_EMAIL doesn't allow  
them either, and I can see us using that instead of a userland PHP  
validator.

-- 
Jan Schneider
The Horde Project
http://www.horde.org/




More information about the turba mailing list