|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-03-05 10:30 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2021-03-05 10:30 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 12:00:02 2025 UTC |
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