RE: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/filter/logical_filters.c branches/PHP_5_3/NEWS
branches/PHP_5_3/ext/filter/logical_filters.c trunk/ext/filter/logical_filters.c
| From: | Jared Williams | Date: | Fri, 02 Apr 2010 23:47:26 +0000 |
| Subject: | RE: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/ branches/PHP_5_2/NEWS branches/PHP_5_2/ext/filter/logical_filters.c branches/PHP_5_3/NEWS branches/PHP_5_3/ext/filter/logical_filters.c trunk/ext/filter/logical_filters.c |
||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-47755@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ferenc Kovacs [mailto:tyra3l@gmail.com]
> Sent: 02 April 2010 23:09
> To: Rasmus Lerdorf
> Cc: Sean Coates; internals@lists.php.net
> Subject: Re: [PHP-DEV] Re: [PHP-CVS] svn: /php/php-src/
> branches/PHP_5_2/NEWS
> branches/PHP_5_2/ext/filter/logical_filters.c
> branches/PHP_5_3/NEWS
> branches/PHP_5_3/ext/filter/logical_filters.c
> trunk/ext/filter/logical_filters.c
>
> Why not define multiple filters?
> I did that solution with more than one framework.
> There are cases when you need to validate the email of your
> remote users (eg. you want to restrict joe@localhost), and
> there are some cases, when you want to go all the way:
> validate the email by format, check the domain for existance,
> check the MX, and there are cases when you have to handle
> local addresses as well, but provide some minimal validation
> for typos.
>
Would make sense. Especially considering HTML5's current validation
rules of emails is something different again.
http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-
the-type-attribute.html#e-mail-state
Having a mismatch in validation between client & server just a recipe
for user frustration.
Jared