Bug #52334 [Opn->Dup]: not allowing urls with hyphens in the domain
| From: | rasmus@php.net | Date: | Wed, 14 Jul 2010 07:18:13 +0000 |
| Subject: | Bug #52334 [Opn->Dup]: not allowing urls with hyphens in the domain | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152390@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52334&edit=1
ID: 52334
Updated by: rasmus@php.net
Reported by: stephen at margni dot com
Summary: not allowing urls with hyphens in the domain
-Status: Open
+Status: Duplicate
Type: Bug
Package: Filter related
Operating System: *NIX
PHP Version: 5.3.2
New Comment:
Already reported and fixed in 5.3.3
Previous Comments:
------------------------------------------------------------------------
[2010-07-14 09:15:57] stephen at margni dot com
Description:
------------
hyphen (-) is a valid character in a domain name
Test script:
---------------
var_dump(filter_var('http://www.foo-bar.com',
FILTER_VALIDATE_URL));
Expected result:
----------------
'http://www.foo-bar.com'
Actual result:
--------------
FALSE
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52334&edit=1