#49470 [Com]: FILTER_SANITIZE_EMAIL does not work

From: Date: Sat, 05 Sep 2009 17:28:22 +0000
Subject: #49470 [Com]: FILTER_SANITIZE_EMAIL does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142006@lists.php.net to get a copy of this message
 ID:               49470
 Comment by:       contact at ghetmedia dot com
 Reported By:      contact at ghetmedia dot com
 Status:           Verified
 Bug Type:         Filter related
 Operating System: *
 PHP Version:      5.2SVN-2009-09-04 (snap)
 New Comment:

This is not compliant with the domain name RFC.


Previous Comments:
------------------------------------------------------------------------

[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



Thread (4 messages)

« previous php.bugs (#142006) next »