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

From: Date: Fri, 04 Sep 2009 23:38:27 +0000
Subject: #49470 [Opn->Ver]: FILTER_SANITIZE_EMAIL does not work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-141992@lists.php.net to get a copy of this message
 ID:               49470
 Updated by:       jani@php.net
 Reported By:      contact at ghetmedia dot com
-Status:           Open
+Status:           Verified
 Bug Type:         Filter related
 Operating System: *
 PHP Version:      5.2SVN-2009-09-04 (snap)


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 (#141992) next »