Fixed detection of internal links
authorMarcel Werk <burntime@woltlab.com>
Fri, 19 Jun 2015 13:13:50 +0000 (15:13 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 19 Jun 2015 13:13:50 +0000 (15:13 +0200)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php

index cf46aab9234c8fda4065f1da895a5c49ea9fef8f..d43aac53a810fbeb98bbf1fdb58fedb9aa928700 100644 (file)
@@ -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'));
                        }
                }