|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Submitted: 2009-04-02 15:51 UTC Modified: 2009-04-02 21:07 UTC
From: cory dot jacobsen at zu dot com Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.2.9 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cory dot jacobsen at zu dot com
New email:
PHP Version: OS:


 [2009-04-02 15:51 UTC] cory dot jacobsen at zu dot com
Some email addresses that are obviously wrong, pass the validation with
FILTER_VALIDATE_EMAIL.  You can not have a top level domain with one character only.

Reproduce code:
var_dump(filter_var("x@y.z", FILTER_VALIDATE_EMAIL));

Expected result:

Actual result:
string(5) "x@y.z"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-04-02 21:07 UTC]
Actually you can if its an internal domain name.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 18:01:33 2024 UTC