From: matt dot farina at gmail dot com Operating system: PHP version: 5.2.10 PHP Bug Type: Filter related Bug description: FILTER_VALIDATE_URL does not validate urls
Description: ------------ FILTER_VALIDATE_URL doesn't actually validate a url. It passes the url through parse_url (which according to the documentation is not meant to validate a url). When tested against a test set this can be seen. Instead of this method PHP should use a regex or some other method to actually validate it. See http://api.drupal.org/api/function/valid_url/6 for an example that is to RFC 3986. I would hope for PHP 6 we can have it look for a valid IRL (with international characters) as well. -- Edit bug report at http://bugs.php.net/?id=49197&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49197&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49197&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49197&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49197&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49197&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49197&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49197&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49197&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49197&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49197&r=support Expected behavior: http://bugs.php.net/fix.php?id=49197&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49197&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49197&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49197&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49197&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49197&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49197&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49197&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49197&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49197&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49197&r=mysqlcfg