php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #61878 FILTER_VALIDATE_URL doesn't support tel: schema
Submitted: 2012-04-30 05:25 UTC Modified: 2012-04-30 16:30 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: colin at viebrock dot ca Assigned:
Status: Open Package: Filter related
PHP Version: 5.3.11 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: colin at viebrock dot ca
New email:
PHP Version: OS:

 

 [2012-04-30 05:25 UTC] colin at viebrock dot ca
Description:
------------
filter_var($uri, FILTER_VALIDATE_URL) will return false if $uri is a "tel:" 
scheme.

I'm not sure if this is covered by RFC 2396, so if it isn't then this should 
become a feature request instead of a bug.

Test script:
---------------
$uri = 'tel:4166520322';

echo filter_var($uri, FILTER_VALIDATE_URL) ? "ok" : "no";


Expected result:
----------------
ok

Actual result:
--------------
no

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-04-30 16:30 UTC] felipe@php.net
-Type: Bug +Type: Feature/Change Request
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 10:01:30 2024 UTC