aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-10-22 13:50:20 +0200
committerArthurHoaro <arthur@hoa.ro>2018-02-02 19:15:47 +0100
commit28df9fa4f7d901632e7fd6e23b6d7dd345f1f6e7 (patch)
tree6e41c336cff937358f875d338b038cfee1eeed3a /application
parent5617dcf9d2b378385315161f37da5a85c700c905 (diff)
downloadShaarli-28df9fa4f7d901632e7fd6e23b6d7dd345f1f6e7.tar.gz
Shaarli-28df9fa4f7d901632e7fd6e23b6d7dd345f1f6e7.tar.zst
Shaarli-28df9fa4f7d901632e7fd6e23b6d7dd345f1f6e7.zip
INTL_IDNA_VARIANT_2003 is deprecated
See https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003
Diffstat (limited to 'application')
-rw-r--r--application/Url.php2
1 files changed, 1 insertions, 1 deletions
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
260 if (! function_exists('idn_to_ascii') || ! isset($this->parts['host'])) { 260 if (! function_exists('idn_to_ascii') || ! isset($this->parts['host'])) {
261 return $out; 261 return $out;
262 } 262 }
263 $asciiHost = idn_to_ascii($this->parts['host']); 263 $asciiHost = idn_to_ascii($this->parts['host'], 0, INTL_IDNA_VARIANT_UTS46);
264 return str_replace($this->parts['host'], $asciiHost, $out); 264 return str_replace($this->parts['host'], $asciiHost, $out);
265 } 265 }
266 266