X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUrl.php;fp=application%2FUrl.php;h=21c17eccaa25644c72134795570cff816e2dad8d;hb=28df9fa4f7d901632e7fd6e23b6d7dd345f1f6e7;hp=b37593773b920c26d3a9e5332d197dc17fb44449;hpb=5617dcf9d2b378385315161f37da5a85c700c905;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Url.php b/application/Url.php index b3759377..21c17ecc 100644 --- a/application/Url.php +++ b/application/Url.php @@ -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); }