Bug #80834 [NEW]: The idn_to_utf8 function returns an error when the URL has "-" at the end
| From: | kontakt at jinteractive dot pl | Date: | Fri, 05 Mar 2021 08:20:45 +0000 |
| Subject: | Bug #80834 [NEW]: The idn_to_utf8 function returns an error when the URL has "-" at the end | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-232569@lists.php.net to get a copy of this message | ||
From: kontakt at jinteractive dot pl
Operating system: Windows, Centos
PHP version: 7.4.16
Package: *URL Functions
Bug Type: Bug
Bug description:The idn_to_utf8 function returns an error when the URL has "-" at the end
Description:
------------
The idn_to_utf8 function returns an error when the URL has a "-" sign at
the end.
Test script:
---------------
$x = idn_to_utf8('www.website.com/asa-asda-asd-.html');
if (!$x)
echo 'error';
else
echo $x;
//return error
$x = idn_to_utf8('www.website.com/asa-asda-asd-');
if (!$x)
echo 'error';
else
echo $x;
//return error
$x = idn_to_utf8('www.website.com/asa-asda-asd.html');
if (!$x)
echo 'error';
else
echo $x;
// return url
--
Edit bug report at https://bugs.php.net/bug.php?id=80834&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=80834&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=80834&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=80834&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=80834&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=80834&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=80834&r=support
Expected behavior: https://bugs.php.net/fix.php?id=80834&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=80834&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=80834&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=80834&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80834&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=80834&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=80834&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=80834&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=80834&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=80834&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=80834&r=mysqlcfg