]> git.mxchange.org Git - friendica.git/commitdiff
Movwe the conversion after the cleaning
authorMichael <heluecht@pirati.ca>
Wed, 11 May 2022 10:56:44 +0000 (10:56 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 11 May 2022 10:56:44 +0000 (10:56 +0000)
src/Network/Probe.php

index 70ab396fede8be897481020cc591fbc7f91886f4..c5ecf96ed3746d884072d3de29ab0fffaf00527f 100644 (file)
@@ -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();