php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40676 Add FILTER_VALIDATE_URI (replacing FILTER_VALIDATE_URL)?
Submitted: 2007-03-01 03:22 UTC Modified: 2011-02-21 21:11 UTC
Votes:9
Avg. Score:3.7 ± 1.2
Reproduced:7 of 7 (100.0%)
Same Version:1 (14.3%)
Same OS:1 (14.3%)
From: walter dot tom+php at gmail dot com Assigned:
Status: Open Package: Filter related
PHP Version: 5.2.1 OS:
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: walter dot tom+php at gmail dot com
New email:
PHP Version: OS:

 

 [2007-03-01 03:22 UTC] walter dot tom+php at gmail dot com
Description:
------------
It appears as of the fix for #39898 that support for validating relative URLs and URLs without a schema has been removed, without any option to allow them.

I understand the reasoning is that the RFC specifies that a URL must include a schema and a host, which is fair enough.

But it leaves the user with no simple way to validate domain names or relative URLs.

So can I suggest that we add a FILTER_VALIDATE_URI type that would allow domains, relative paths, or full URLs?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-02-21 21:11 UTC] jani@php.net
-Package: Feature/Change Request +Package: Filter related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 17:01:30 2024 UTC