php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64441 FILTER_VALIDATE_URL rejects fully qualified domain names
Submitted: 2013-03-16 22:25 UTC Modified: 2013-05-15 12:57 UTC
From: phpwnd at gmail dot com Assigned: pajoye
Status: Closed Package: Filter related
PHP Version: 5.5.0alpha5 OS:
Private report: No CVE-ID:
 [2013-03-16 22:25 UTC] phpwnd at gmail dot com
Description:
------------
FILTER_VALIDATE_URL rejects fully qualified domain names even though parse_url() parses them just fine.

Test script:
---------------
var_dump(filter_var('http://example.com.', FILTER_VALIDATE_URL));

Expected result:
----------------
string(18) "http://example.com."

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-05-15 12:57 UTC] dsp@php.net
-Assigned To: +Assigned To: pajoye
 [2013-09-16 21:36 UTC] dsp@php.net
Automatic comment on behalf of syragg@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=18b54a2366dd589959240f8770bbb54be819f6e7
Log: Fix bug #64441 (FILTER_VALIDATE_URL rejects fully qualified domain names)
 [2013-09-16 21:36 UTC] dsp@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 23:01:58 2014 UTC