Bug #53017 [Opn]: Problem of using filter_var() on a specific link
| From: | rudeboiidevil2k7 at hotmail dot co dot uk | Date: | Thu, 07 Oct 2010 17:43:57 +0000 |
| Subject: | Bug #53017 [Opn]: Problem of using filter_var() on a specific link | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-154995@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53017&edit=1
ID: 53017
User updated by: rudeboiidevil2k7 at hotmail dot co dot uk
Reported by: rudeboiidevil2k7 at hotmail dot co dot uk
Summary: Problem of using filter_var() on a specific link
Status: Open
Type: Bug
Package: Filter related
-Operating System: Mac OS X
+Operating System: Mac Snow Leopard
PHP Version: 5.3.3
Block user comment: N
New Comment:
Detailed OS
Previous Comments:
------------------------------------------------------------------------
[2010-10-07 19:41:27] rudeboiidevil2k7 at hotmail dot co dot uk
Description:
------------
There is a type of link that would always return false when checking if
it is a valid link, a link such as:
http://img8.warez-bb.org/images/wbb_logo_v2.jpg
So that type of link (provided above) will always return false.
Test script:
---------------
if(filter_var('http://img8.warez-bb.org/images/wbb_logo_v2.jpg',
FILTER_VALIDATE_URL))
{
echo 'valid';
}
else
{
echo 'not valid';
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53017&edit=1