INTL_IDNA_VARIANT_2003 is deprecated

See https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003
This commit is contained in:
ArthurHoaro 2017-10-22 13:50:20 +02:00
parent 5617dcf9d2
commit 28df9fa4f7
1 changed files with 1 additions and 1 deletions

View 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);
}