#50158 [Ver->Csd]: FILTER_VALIDATE_EMAIL fails with valid addresses containing = or ?
| From: | felipe@php.net | Date: | Sun, 15 Nov 2009 16:53:54 +0000 |
| Subject: | #50158 [Ver->Csd]: FILTER_VALIDATE_EMAIL fails with valid addresses containing = or ? | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-144632@lists.php.net to get a copy of this message | ||
ID: 50158
Updated by: felipe@php.net
Reported By: andrew dot nicols at luns dot net dot uk
-Status: Verified
+Status: Closed
Bug Type: Filter related
Operating System: *
PHP Version: 5.*, 6
Assigned To: pierrick
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Thanks for the patch.
Previous Comments:
------------------------------------------------------------------------
[2009-11-15 16:53:40] svn@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=290791
Log: - Fixed bug #50158 (FILTER_VALIDATE_EMAIL fails with valid
addresses containing = or ?).
(Patch by Pierrick)
------------------------------------------------------------------------
[2009-11-14 17:25:01] pierrick@php.net
Patch available at:
http://www.adoy.net/php/50158.patch
This patch add = and ? to the local-part validation according to
RFC2822
------------------------------------------------------------------------
[2009-11-12 17:12:50] jani@php.net
Quick check to the regexp used shows these are missing from allowed
part in it: = ?
------------------------------------------------------------------------
[2009-11-12 17:07:56] jani@php.net
Yes, = is valid. And also any of these too:
! $ & * - = ^ ` | ~ # % ' + / ? _ { }
------------------------------------------------------------------------
[2009-11-12 14:57:16] andrew dot nicols at luns dot net dot uk
Copy/paste bug on my behalf. The expected result is:
string(21) "test=mail@example.com"
string(21) "test-mail@example.com"
string(21) "test+mail@example.com"
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/50158
--
Edit this bug report at http://bugs.php.net/?id=50158&edit=1