From: Marcel Werk Date: Fri, 19 Jun 2015 13:13:50 +0000 (+0200) Subject: Fixed detection of internal links X-Git-Tag: 2.1.5~21 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f7518cc471085382f24b73a71bd8ddf10635c42f;p=GitHub%2FWoltLab%2FWCF.git Fixed detection of internal links --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index cf46aab923..d43aac53a8 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -148,7 +148,7 @@ class ApplicationHandler extends SingletonFactory { $protocolRegex = new Regex('^https(?=://)'); if (empty($this->pageURLs)) { foreach ($this->getApplications() as $application) { - $this->pageURLs[] = $protocolRegex->replace($application->getPageURL(), 'http'); + $this->pageURLs[] = preg_replace('~/$~', '', $protocolRegex->replace($application->getPageURL(), 'http')); } }