ID:               50158
 Updated by:       fel...@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] s...@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] pierr...@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] j...@php.net

Quick check to the regexp used shows these are missing from allowed
part in it: = ?   


------------------------------------------------------------------------

[2009-11-12 17:07:56] j...@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=m...@example.com"
string(21) "test-m...@example.com"
string(21) "test+m...@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

Reply via email to