php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44445 filter_var doesn't filter email with dashed domainname
Submitted: 2008-03-16 15:18 UTC Modified: 2008-03-18 23:33 UTC
From: hanno at hboeck dot de Assigned: iliaa (profile)
Status: Closed Package: Filter related
PHP Version: 5.2.6RC2 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hanno at hboeck dot de
New email:
PHP Version: OS:

 

 [2008-03-16 15:18 UTC] 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).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-18 23:33 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC