#49652 [Opn->Bgs]: FILTER_VALIDATE_EMAIL alllows double -

From: Date: Thu, 24 Sep 2009 19:50:54 +0000
Subject: #49652 [Opn->Bgs]: FILTER_VALIDATE_EMAIL alllows double -
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142842@lists.php.net to get a copy of this message
 ID:               49652
 Updated by:       sjoerd@php.net
 Reported By:      riad93 at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Filter related
 Operating System: *
 PHP Version:      5.2.11
 New Comment:

Thank you for your feedback.

I could not find any specification that disallows consecutive hyphens,
and I did find an actual domain name with consecutive hyphens:
http://www.xn--sgarr-wqa3i.com/

I guess it is allowed, so this is not a bug.


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

[2009-09-24 10:27:27] riad93 at mail dot ru

Description:
------------
As I know double - are not allowed in domen names and usernames of
email

Reproduce code:
---------------
var_dump(filter_var('a--b@m--l.ru',FILTER_VALIDATE_EMAIL));

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

Actual result:
--------------
string(12) "a--b@m--l.ru"


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


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



Thread (2 messages)

« previous php.bugs (#142842) next »