From: joshuaruesweg Date: Tue, 16 Mar 2021 13:16:45 +0000 (+0100) Subject: Reject to unfurl urls with an explicit port X-Git-Tag: 5.4.0_Alpha_1~146^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df3098421deb901f9d2a388cf6d12617df7e3aa6;p=GitHub%2FWoltLab%2FWCF.git Reject to unfurl urls with an explicit port --- 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', [