ID:               40573
 User updated by:  crocodile2u at yandex dot ru
 Reported By:      crocodile2u at yandex dot ru
 Status:           Open
 Bug Type:         Filter related
 Operating System: Ubuntu Linux
 PHP Version:      5.2.1
 New Comment:

I've just looked at what the RFC 2822 allows - and found that the
filter actually works fine. That was my mistake to think that slashes
are not allowed in the local part of address. Sorry.


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

[2007-02-21 07:26:59] crocodile2u at yandex dot ru

Description:
------------
Some email addresses that are obviously wrong, pass the validation with
FILTER_VALIDATE_EMAIL

Reproduce code:
---------------
var_dump(filter_var("/@wrong.email", FILTER_VALIDATE_EMAIL));

Expected result:
----------------
bool(false)

Actual result:
--------------
string(13) "/@wrong.email"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40573&edit=1

Reply via email to