#48758 [Opn->Bgs]: FILTER_VALIDATE_URL rejects urls with an umlaut in path
| From: | johannes@php.net | Date: | Thu, 02 Jul 2009 10:26:52 +0000 |
| Subject: | #48758 [Opn->Bgs]: FILTER_VALIDATE_URL rejects urls with an umlaut in path | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139129@lists.php.net to get a copy of this message | ||
ID: 48758
Updated by: johannes@php.net
Reported By: j dot jeising at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filter related
Operating System: *
PHP Version: 5.3.0
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
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.
http://tools.ietf.org/html/rfc3986#section-3.3
Previous Comments:
------------------------------------------------------------------------
[2009-07-01 20:15:29] j dot jeising at gmail dot com
Description:
------------
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 = 'http://www.example.com/exämple';
var_dump(filter_var($url, FILTER_VALIDATE_URL));
Expected result:
----------------
string(30) "http://www.example.com/example"
Actual result:
--------------
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48758&edit=1