php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53017 Problem of using filter_var() on a specific link
Submitted: 2010-10-07 19:41 UTC Modified: 2010-10-08 04:59 UTC
From: rudeboiidevil2k7 at hotmail dot co dot uk Assigned:
Status: Duplicate Package: Filter related
PHP Version: 5.3.3 OS: Mac Snow Leopard
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rudeboiidevil2k7 at hotmail dot co dot uk
New email:
PHP Version: OS:

 

 [2010-10-07 19:41 UTC] 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';
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-10-07 19:43 UTC] rudeboiidevil2k7 at hotmail dot co dot uk
-Operating System: Mac OS X +Operating System: Mac Snow Leopard
 [2010-10-07 19:43 UTC] rudeboiidevil2k7 at hotmail dot co dot uk
Detailed OS
 [2010-10-07 22:13 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2010-10-07 22:13 UTC] cataphract@php.net
Hum? Is this echoing "invalid" for you? I get "valid", which is what's expected.
 [2010-10-08 04:59 UTC] aharvey@php.net
-Status: Feedback +Status: Duplicate
 [2010-10-08 04:59 UTC] aharvey@php.net
Snow Leopard is currently still shipping 5.3.2 as standard, which suffered from bug #51192. This is fixed in 5.3.3.

Marking duplicate; closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 01:01:30 2024 UTC