php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51621 FILTER_VALIDATE_URL return true on invalid URLs
Submitted: 2010-04-21 12:56 UTC Modified: 2010-04-27 14:16 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: terq at wikidot dot com Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.2.13 OS: MAC OS 10.6.3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: terq at wikidot dot com
New email:
PHP Version: OS:

 

 [2010-04-21 12:56 UTC] terq at wikidot dot com
Description:
------------
terq-2 workspace$ php -v
PHP 5.2.13 (cli) (built: Mar 16 2010 11:04:48) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
terq-2 workspace$ php
<?php
var_dump(filter_var("http://user:pas::qfas@@@.lol..com/~~/qwedd..php##qewg", FILTER_VALIDATE_URL));
string(53) "http://user:pas::qfas@@@.lol..com/~~/qwedd..php##qewg"


Test script:
---------------
<?php
var_dump(filter_var("http://user:pas::qfas@@@.lol..com/~~/qwedd..php##qewg", FILTER_VALIDATE_URL));

Expected result:
----------------
boll(false)

Actual result:
--------------
string(53) "http://user:pas::qfas@@@.lol..com/~~/qwedd..php##qewg"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-27 13:33 UTC] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-04-27 13:33 UTC] felipe@php.net
It was already fixed.
 [2010-04-27 13:46 UTC] terq at wikidot dot com
Where is bug fix for this?
In which PHP version is it fixed ?
 [2010-04-27 14:15 UTC] felipe@php.net
-Status: Closed +Status: Bogus
 [2010-04-27 14:15 UTC] felipe@php.net
I've tested on PHP 5.2.14-dev. But looks fixed on 5.2.13.

See http://svn.php.net/viewvc?view=revision&revision=292611
 [2010-04-27 14:16 UTC] felipe@php.net
-Assigned To: felipe +Assigned To:
 [2010-04-27 14:16 UTC] felipe@php.net
I've tested on PHP 5.2.14-dev. But looks fixed on 5.2.13.

See http://svn.php.net/viewvc?view=revision&revision=292611
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 09 09:01:26 2024 UTC