Bug #51780 [Opn->Dup]: FILTER_VALIDATE_URL should allow domain name with '-'

From: Date: Mon, 10 May 2010 03:39:00 +0000
Subject: Bug #51780 [Opn->Dup]: FILTER_VALIDATE_URL should allow domain name with '-'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-150296@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=51780&edit=1 ID: 51780 Updated by: rasmus@php.net Reported by: srwang at pixnet dot tw Summary: FILTER_VALIDATE_URL should allow domain name with '-' -Status: Open +Status: Duplicate Type: Bug Package: Filter related Operating System: All PHP Version: 5.3.2 New Comment: This was reported and fixed before. Will be in the next release. Previous Comments: ------------------------------------------------------------------------ [2010-05-10 05:03:00] srwang at pixnet dot tw Description: ------------ FILTER_VALIDATE_URL should allow host name with '-' Test script: --------------- var_dump(filter_var('http://www.711.com.tw', FILTER_VALIDATE_URL)); var_dump(filter_var('http://www.7-11.com.tw', FILTER_VALIDATE_URL)); Expected result: ---------------- string(21) "http://www.711.com.tw" string(22) "http://www.7-11.com.tw" Actual result: -------------- string(21) "http://www.711.com.tw" bool(false) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51780&edit=1

« previous php.bugs (#150296) next »