From: Michael Date: Wed, 11 May 2022 10:56:44 +0000 (+0000) Subject: Movwe the conversion after the cleaning X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=34f594137e2c13ec9b88a6b799d7c62a667cc979;p=friendica.git Movwe the conversion after the cleaning --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 70ab396fed..c5ecf96ed3 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -65,11 +65,11 @@ class Probe */ public static function cleanURI(string $rawUri): string { - $rawUri = Network::convertToIdn($rawUri); - // At first remove leading and trailing junk $rawUri = trim($rawUri, "@#?:/ \t\n\r\0\x0B"); + $rawUri = Network::convertToIdn($rawUri); + $uri = new Uri($rawUri); if (!$uri->getScheme()) { return $uri->__toString();