]> git.mxchange.org Git - friendica.git/commitdiff
Fix: Undefined array key "host"
authorMichael <heluecht@pirati.ca>
Mon, 20 May 2024 14:49:36 +0000 (14:49 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 20 May 2024 14:49:36 +0000 (14:49 +0000)
src/Content/Text/BBCode.php

index 3324e690bf70dd35988781f8a681654433421071..c9296179ce9714d0b31fe5203c1462d9322b4a18 100644 (file)
@@ -2119,7 +2119,7 @@ class BBCode
        private static function idnUrl(string $url): string
        {
                $parts = parse_url($url);
-               if (empty($parts)) {
+               if (empty($parts['host'])) {
                        return $url;
                }