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

From: Date: Tue, 18 Mar 2008 23:33:05 +0000
Subject: #44445 [Asn->Csd]: filter_var doesn't filter email with dashed domainname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-123445@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: Assigned +Status: Closed Bug Type: Filter related Operating System: Linux PHP Version: 5.2.6RC2 Assigned To: iliaa New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. 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 (#123445) next »