From: Tim Düsterhus Date: Tue, 12 Apr 2016 19:00:51 +0000 (+0200) Subject: Fix RouteHandler::getPath() when every component is removed X-Git-Tag: 3.0.0_Beta_1~1920 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99bff705db171ac2a9a9808327d4215a000527a4;p=GitHub%2FWoltLab%2FWCF.git Fix RouteHandler::getPath() when every component is removed --- diff --git a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php index 3dff96d1a5..eef7151216 100644 --- a/wcfsetup/install/files/lib/system/request/RouteHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RouteHandler.class.php @@ -280,7 +280,7 @@ class RouteHandler extends SingletonFactory { } } - return '/' . implode('/', $path) . '/'; + return FileUtil::addTrailingSlash('/' . implode('/', $path)); } return self::$path;