]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/Probe.php
update FR translations THX kalon33
[friendica.git] / src / Network / Probe.php
index 70ab396fede8be897481020cc591fbc7f91886f4..d8a159331335447ee20593d5e2170746d6ab620b 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();
@@ -1445,7 +1445,7 @@ class Probe
         * @return array|bool OStatus data or "false" on error or "true" on short mode
         * @throws HTTPException\InternalServerErrorException
         */
-       private static function ostatus($webfinger, $short = false)
+       private static function ostatus(array $webfinger, bool $short = false)
        {
                $data = [];