Bug #53722 [Opn->Bgs]: FILTER_VALIDATE_EMAIL fails on numeric TLDs
| From: | iliaa@php.net | Date: | Tue, 18 Jan 2011 13:03:15 +0000 |
| Subject: | Bug #53722 [Opn->Bgs]: FILTER_VALIDATE_EMAIL fails on numeric TLDs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-157979@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53722&edit=1
ID: 53722
Updated by: iliaa@php.net
Reported by: romain dot riviere at gmail dot com
Summary: FILTER_VALIDATE_EMAIL fails on numeric TLDs
-Status: Open
+Status: Bogus
Type: Bug
Package: Filter related
Operating System: Linux
PHP Version: 5.3.5
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
There are no numeric TLDs, the e-mail filters supports IP based e-mail
addresses
however.
Previous Comments:
------------------------------------------------------------------------
[2011-01-12 13:48:58] romain dot riviere at gmail dot com
Description:
------------
Although FILTER_VALIDATE_EMAIL accepts non-existent TLDs, it refuses to
validate
numeric TLDs.
AFAIK, there is no technical justification for this: numeric TLDs just
work out of
the box as far as the DNS know about them.
I suggest that the filter should validate numeric TLDs, or that a
FILTER_FLAG_ALLOW_NUMTLD be created to alter the default behaviour of
the filter.
Test script:
---------------
filter_var("johndoe@domain.123", FILTER_SANITIZE_EMAIL) ; // returns
false
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53722&edit=1