|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49470 FILTER_SANITIZE_EMAIL does not work
Submitted: 2009-09-04 23:26 UTC Modified: 2009-09-07 02:35 UTC
From: contact at ghetmedia dot com Assigned:
Status: Closed Package: Filter related
PHP Version: 5.2SVN-2009-09-04 (snap) OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
34 - 29 = ?
Subscribe to this entry?

 [2009-09-04 23:26 UTC] contact at ghetmedia dot com
Filter_var and it's flag FILTER_SANITIZE_EMAIL do absolutely nothing.

Reproduce code:
echo filter_var('test@t//', FILTER_SANITIZE_EMAIL);

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-05 17:28 UTC] contact at ghetmedia dot com
This is not compliant with the domain name RFC.
 [2009-09-07 02:35 UTC]
Automatic comment from SVN on behalf of iliaa
Log: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters).
 [2009-09-07 02:35 UTC]
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
Thank you for the report, and for helping us make PHP better.

 [2009-10-09 17:50 UTC]
Automatic comment from SVN on behalf of pajoye
Log: - Merge: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters)
 [2009-11-23 14:54 UTC]
Automatic comment from SVN on behalf of rasmus
Log: When Ilia fixed bug #49470 and removed the '/' as a valid
email char, he forgot to make the corresponding change in
filter test 033.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 26 15:01:29 2024 UTC