|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: contact at ghetmedia dot com
New email:
PHP Version: OS:


 [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: Wed May 29 06:01:32 2024 UTC