Edit report at http://bugs.php.net/bug.php?id=51621&edit=1
ID: 51621 Updated by: fel...@php.net Reported by: terq at wikidot dot com Summary: FILTER_VALIDATE_URL return true on invalid URLs Status: Bogus Type: Bug Package: Filter related Operating System: MAC OS 10.6.3 PHP Version: 5.2.13 -Assigned To: felipe +Assigned To: New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2010-04-27 14:15:58] fel...@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 13:46:06] terq at wikidot dot com Where is bug fix for this? In which PHP version is it fixed ? ------------------------------------------------------------------------ [2010-04-27 13:33:49] fel...@php.net It was already fixed. ------------------------------------------------------------------------ [2010-04-21 12:56:59] 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" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=51621&edit=1