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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 19 13:01:30 2024 UTC