From: Marcel Werk Date: Thu, 6 Aug 2020 20:45:09 +0000 (+0200) Subject: isInternalURL() treats everything as internal that resides on the same subdomain X-Git-Tag: 5.3.0_Alpha_1~83^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=557609552b031ebbdb2cb24e7c9ac0a149b15c29;p=GitHub%2FWoltLab%2FWCF.git isInternalURL() treats everything as internal that resides on the same subdomain --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 675a807fd2..b3a95ffcb0 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -200,8 +200,9 @@ class ApplicationHandler extends SingletonFactory { $protocolRegex = new Regex('^https(?=://)'); if (empty($this->pageURLs)) { foreach ($this->getApplications() as $application) { - $this->pageURLs[] = preg_replace('~/$~', '', $protocolRegex->replace($application->getPageURL(), 'http')); + $this->pageURLs[] = preg_replace('~/$~', '', $protocolRegex->replace(RouteHandler::getProtocol() . $application->domainName, 'http')); } + $this->pageURLs = array_unique($this->pageURLs); } foreach ($this->pageURLs as $pageURL) {