Bug #52334 [Csd->Dup]: not allowing urls with hyphens in the domain
| From: | pajoye@php.net | Date: | Wed, 14 Jul 2010 07:22:09 +0000 |
| Subject: | Bug #52334 [Csd->Dup]: not allowing urls with hyphens in the domain | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-152393@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: pajoye@php.net
Reported by: code at margni dot com
Summary: not allowing urls with hyphens in the domain
-Status: Closed
+Status: Duplicate
Type: Bug
Package: Filter related
Operating System: *NIX
PHP Version: 5.3.2
Previous Comments:
------------------------------------------------------------------------
[2010-07-14 09:20:21] code at margni dot com
great!
------------------------------------------------------------------------
[2010-07-14 09:19:56] code at margni dot com
fixed my email
------------------------------------------------------------------------
[2010-07-14 09:18:12] rasmus@php.net
Already reported and fixed in 5.3.3
------------------------------------------------------------------------
[2010-07-14 09:15:57] code 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