From df3098421deb901f9d2a388cf6d12617df7e3aa6 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Tue, 16 Mar 2021 14:16:45 +0100 Subject: [PATCH] Reject to unfurl urls with an explicit port --- .../files/lib/system/html/node/HtmlNodeUnfurlLink.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php b/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php index 1cec6f1617..bc2041cddc 100644 --- a/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php +++ b/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php @@ -24,7 +24,7 @@ class HtmlNodeUnfurlLink extends HtmlNodePlainLink */ public static function setUnfurl(HtmlNodePlainLink $link): void { - if ($link->isStandalone() && Url::is($link->href)) { + if ($link->isStandalone() && Url::is($link->href) && !Url::parse($link->href)['port']) { self::removeStyling($link); $object = new UnfurlUrlAction([], 'findOrCreate', [ -- 2.20.1