#49470 [Ver->Csd]: FILTER_SANITIZE_EMAIL does not work

From: Date: Mon, 07 Sep 2009 02:35:34 +0000
Subject: #49470 [Ver->Csd]: FILTER_SANITIZE_EMAIL does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142044@lists.php.net to get a copy of this message
ID: 49470 Updated by: iliaa@php.net Reported By: contact at ghetmedia dot com -Status: Verified +Status: Closed Bug Type: Filter related Operating System: * PHP Version: 5.2SVN-2009-09-04 (snap) 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. Previous Comments: ------------------------------------------------------------------------ [2009-09-07 02:35:25] svn@php.net Automatic comment from SVN on behalf of iliaa Revision: http://svn.php.net/viewvc/?view=revision&revision=288117 Log: Fixed bug #49470 (FILTER_SANITIZE_EMAIL allows disallowed characters). ------------------------------------------------------------------------ [2009-09-05 17:28:22] contact at ghetmedia dot com This is not compliant with the domain name RFC. ------------------------------------------------------------------------ [2009-09-04 23:26:46] contact at ghetmedia dot com Description: ------------ Filter_var and it's flag FILTER_SANITIZE_EMAIL do absolutely nothing. Reproduce code: --------------- echo filter_var('test@t//est.com', FILTER_SANITIZE_EMAIL); Expected result: ---------------- test@test.com Actual result: -------------- test@t//est.com ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49470&edit=1

« previous php.bugs (#142044) next »