X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUrl.php;h=c5c7dd187bbc0d1f1f3d7aff97bbb4cfc375bb61;hb=7af9a41881ed0b9d44d18a0ce03a123a8441adf5;hp=c166ff6ef03f6023c2bf895279f8eb8940736ba9;hpb=ceeb8fbeb89f69e41791ae192d073d6afea00f4b;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Url.php b/application/Url.php index c166ff6e..c5c7dd18 100644 --- a/application/Url.php +++ b/application/Url.php @@ -62,21 +62,7 @@ function add_trailing_slash($url) { return $url . (!endsWith($url, '/') ? '/' : ''); } -/** - * Converts an URL with an IDN host to a ASCII one. - * - * @param string $url Input URL. - * - * @return string converted URL. - */ -function url_with_idn_to_ascii($url) -{ - $parts = parse_url($url); - $parts['host'] = idn_to_ascii($parts['host']); - $httpUrl = new \http\Url($parts); - return $httpUrl->toString(); -} /** * URL representation and cleanup utilities *