|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48758 FILTER_VALIDATE_URL rejects urls with an umlaut in path
Submitted: 2009-07-01 20:15 UTC Modified: 2009-07-02 10:26 UTC
From: j dot jeising at gmail dot com Assigned:
Status: Not a bug Package: Filter related
PHP Version: 5.3.0 OS: *
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.
Block user comment
Status: Assign to:
Bug Type:
From: j dot jeising at gmail dot com
New email:
PHP Version: OS:


 [2009-07-01 20:15 UTC] j dot jeising at gmail dot com
FILTER_VALIDATE_URL rejects URLs with umlauts in the path. Umlauts are 
not allowed in the domain (object of #42353), but in the path, they are 
(at least, everybody supports them).

Reproduce code:
$url = '';
var_dump(filter_var($url, FILTER_VALIDATE_URL));

Expected result:
string(30) ""

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-02 10:26 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

They are not allowed. Browser often (not all do that btw.) translate them in the adressbar for convenience but that's far off from any standard.

RFC3986 specifies a URI to conatain only 
   ALPHA / DIGIT / "-" / "." / "_" / "~" / "%" HEXDIG HEXDIG / "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="
where ALPHA is defined as a-zA-Z and DIGIT as 0-9.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 20 10:01:31 2024 UTC