|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51780 FILTER_VALIDATE_URL should allow domain name with '-'
Submitted: 2010-05-10 05:03 UTC Modified: 2010-05-10 05:38 UTC
From: srwang at pixnet dot tw Assigned:
Status: Duplicate Package: Filter related
PHP Version: 5.3.2 OS: All
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.
Bug Type:
From: srwang at pixnet dot tw
New email:
PHP Version: OS:


 [2010-05-10 05:03 UTC] srwang at pixnet dot tw
FILTER_VALIDATE_URL should allow host name with '-'

Test script:
var_dump(filter_var('', FILTER_VALIDATE_URL));
var_dump(filter_var('', FILTER_VALIDATE_URL));

Expected result:
string(21) ""
string(22) ""

Actual result:
string(21) ""


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-05-10 05:39 UTC]
-Status: Open +Status: Duplicate
 [2010-05-10 05:39 UTC]
This was reported and fixed before.  Will be in the next release.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Oct 05 03:04:12 2022 UTC