X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FUrl.php;h=25a62a8ab3fb5dafa02870ab968418038ef21d37;hb=7481dd6e66c132ae064613de19e73dab0ca2de19;hp=77447c8df96635c17f55a90cb463a1313c35170a;hpb=caa69b585381cc1c22df3dbb9c943855b8f13a70;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Url.php b/application/Url.php index 77447c8d..25a62a8a 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 * @@ -99,6 +85,7 @@ class Url 'action_type_map=', 'fb_', 'fb=', + 'PHPSESSID=', // Scoop.it '__scoop', @@ -107,7 +94,10 @@ class Url 'utm_', // ATInternet - 'xtor=' + 'xtor=', + + // Other + 'campaign_' ); private static $annoyingFragments = array(