Fix issue when converting the hostname to lower case
authorMarcel Werk <burntime@woltlab.com>
Mon, 29 Jan 2024 11:25:37 +0000 (12:25 +0100)
committerMarcel Werk <burntime@woltlab.com>
Mon, 29 Jan 2024 11:25:37 +0000 (12:25 +0100)
see https://github.com/WoltLab/WCF/pull/5781#pullrequestreview-1847648225

wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php

index 0637eabe8efb5ecbf3b1c734a34806090b35290e..5996f091722dc0964017aed61e1b20909e7a2791 100644 (file)
@@ -64,7 +64,7 @@ class HtmlNodeUnfurlLink extends HtmlNodePlainLink
     private static function lowercaseHostname(string $url): string
     {
         $uri = new Uri($url);
-        $uri->withHost(\mb_strtolower($uri->getHost()));
+        $uri = $uri->withHost(\mb_strtolower($uri->getHost()));
 
         return $uri->__toString();
     }