Bug #53474 [Com]: FILTER_VALIDATE_URL should not fail URL's that use IDN
| From: | mathias at qiwi dot be | Date: | Sun, 05 Dec 2010 09:46:21 +0000 |
| Subject: | Bug #53474 [Com]: FILTER_VALIDATE_URL should not fail URL's that use IDN | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-156762@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53474&edit=1
ID: 53474
Comment by: mathias at qiwi dot be
Reported by: gunther at keryx dot se
Summary: FILTER_VALIDATE_URL should not fail URL's that use
IDN
Status: Open
Type: Bug
Package: Filter related
Operating System: All
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I was trying to post a comment here, but it wouldnât let me (âERROR:
Please do not
SPAM our bug systemâ), probably because of all the âURLsâ I was
trying to post.
Oh well, hereâs the comment I tried to post:
http://paste.pocoo.org/raw/VBO3Gn0vIipLQPRIgAEB/
Previous Comments:
------------------------------------------------------------------------
[2010-12-05 00:28:50] gunther at keryx dot se
Description:
------------
If an URL uses IDN it should be considered valid.
The test script outputs three blank lines. It should output the URL's.
Examples from http://mathiasbynens.be/demo/url-regex
Test script:
---------------
<?php
echo filter_var('http://âªdf.ws/123',
FILTER_VALIDATE_URL);
echo "\n";
echo filter_var('http://â.ws/',
FILTER_VALIDATE_URL);
echo "\n";
echo filter_var('http://â¡.ws/䨹',
FILTER_VALIDATE_URL);
echo "\n";
Expected result:
----------------
http://âªdf.ws/123
http://â.ws/
http://â.ws/http://â¡.ws/䨹
Actual result:
--------------
\n
\n
\n
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53474&edit=1