From ba6982ae82d0846e8d57260148147e002394633c Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 13 Oct 2011 15:03:49 +0200 Subject: [PATCH] Fixed default route handling --- wcfsetup/install/files/lib/system/request/Route.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index 0c769c2d05..039f378c74 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -230,6 +230,9 @@ class Route { if (isset($this->parameterOptions['controller']) && strcasecmp($this->parameterOptions['controller']['default'], $components['controller']) == 0) { // only the controller was given and matches default, omit routing $buildRoute = false; + + // unset the controller, since it would otherwise added with http_build_query() + unset($components['controller']); } } -- 2.20.1