Bug->Req #69501 [Opn]: filter_var url validation does not support hebrew urls
Edit report at https://bugs.php.net/bug.php?id=69501&edit=1
ID: 69501
Updated by: cmb@php.net
Reported by: bitanetanel at gmail dot com
Summary: filter_var url validation does not support hebrew
urls
Status: Open
-Type: Bug
+Type: Feature/Change Request
-Package: *General Issues
+Package: Filter related
Operating System: linux
PHP Version: 5.5.24
Block user comment: N
Private report: N
New Comment:
That is documented behavior[1]. In short: FILTER_VALIDATE_URL
validates according to RFC 2396, which does not cater to IDNs.
I'm changing to feature request.
[1] <http://php.net/manual/en/filter.filters.validate.php>
Previous Comments:
------------------------------------------------------------------------
[2015-04-22 05:24:22] bitanetanel at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.filter-var
---
filter_var url validation does not support hebrew urls
For example, this is a valid url: www.example.com/××××§×
But the filter_var function returns false.
Test script:
---------------
<?php
$url = "http://www.example.com/×××";
if(!filter_var($url, FILTER_VALIDATE_URL))
{
echo "Invalid URL";
}
else
{
echo "Valid URL";
}
?>
will output "Invalid url", but it is a valid url..
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69501&edit=1
Thread (3 messages)