Req #69501 [Com]: filter_var url validation does not support hebrew urls
| From: | emltopstconverter at blogemail dot com | Date: | Mon, 15 Mar 2021 07:33:29 +0000 |
| Subject: | Req #69501 [Com]: filter_var url validation does not support hebrew urls | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232721@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69501&edit=1
ID: 69501
Comment by: emltopstconverter at blogemail dot com
Reported by: bitanetanel at gmail dot com
Summary: filter_var url validation does not support hebrew
urls
Status: Open
Type: Feature/Change Request
Package: Filter related
Operating System: linux
PHP Version: 5.5.24
Block user comment: N
Private report: N
New Comment:
https://sites.google.com/site/mboxtopstconvertertool
https://sites.google.com/view/emlfileconvertertool
Previous Comments:
------------------------------------------------------------------------
[2015-04-22 12:10:10] cmb@php.net
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>
------------------------------------------------------------------------
[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