ID: 50158 Updated by: [email protected] 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] [email protected] 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] [email protected] 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] [email protected] Quick check to the regexp used shows these are missing from allowed part in it: = ? ------------------------------------------------------------------------ [2009-11-12 17:07:56] [email protected] 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) "[email protected]" string(21) "[email protected]" string(21) "[email protected]" ------------------------------------------------------------------------ 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
