#44445 [Opn->Asn]: filter_var doesn't filter email with dashed domainname

From: Date: Tue, 18 Mar 2008 19:08:15 +0000
Subject: #44445 [Opn->Asn]: filter_var doesn't filter email with dashed domainname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123430@lists.php.net to get a copy of this message
ID: 44445 Updated by: iliaa@php.net Reported By: hanno at hboeck dot de -Status: Open +Status: Assigned Bug Type: Filter related Operating System: Linux PHP Version: 5.2.6RC2 -Assigned To: +Assigned To: iliaa Previous Comments: ------------------------------------------------------------------------ [2008-03-16 15:18:39] hanno at hboeck dot de Description: ------------ As an example, filter_var("foo@-foo.com",FILTER_VALIDATE_EMAIL); will report this address as valid, although domains beginning or ending with a dash are invalid (same with foo@foo-.com). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44445&edit=1

« previous php.bugs (#123430) next »