]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
INTL_IDNA_VARIANT_2003 is deprecated 1003/head
authorArthurHoaro <arthur@hoa.ro>
Sun, 22 Oct 2017 11:50:20 +0000 (13:50 +0200)
committerArthurHoaro <arthur@hoa.ro>
Fri, 2 Feb 2018 18:15:47 +0000 (19:15 +0100)
See https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003

application/Url.php

index b37593773b920c26d3a9e5332d197dc17fb44449..21c17eccaa25644c72134795570cff816e2dad8d 100644 (file)
@@ -260,7 +260,7 @@ class Url
         if (! function_exists('idn_to_ascii') || ! isset($this->parts['host'])) {
             return $out;
         }
-        $asciiHost = idn_to_ascii($this->parts['host']);
+        $asciiHost = idn_to_ascii($this->parts['host'], 0, INTL_IDNA_VARIANT_UTS46);
         return str_replace($this->parts['host'], $asciiHost, $out);
     }