From f7518cc471085382f24b73a71bd8ddf10635c42f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 19 Jun 2015 15:13:50 +0200 Subject: [PATCH] Fixed detection of internal links --- .../files/lib/system/application/ApplicationHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')); } } -- 2.20.1