#40573 [Opn->Bgs]: Wrong email address passes validation

From: Date: Wed, 21 Feb 2007 08:11:47 +0000
Subject: #40573 [Opn->Bgs]: Wrong email address passes validation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109238@lists.php.net to get a copy of this message
ID: 40573 Updated by: tony2001@php.net Reported By: crocodile2u at yandex dot ru -Status: Open +Status: Bogus Bug Type: Filter related Operating System: Ubuntu Linux PHP Version: 5.2.1 New Comment: Bogusified by user request. Previous Comments: ------------------------------------------------------------------------ [2007-02-21 08:10:04] crocodile2u at yandex dot ru 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#109238) next »