From 34f594137e2c13ec9b88a6b799d7c62a667cc979 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 11 May 2022 10:56:44 +0000 Subject: [PATCH] Movwe the conversion after the cleaning --- src/Network/Probe.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();