From: Alexander Ebert Date: Thu, 13 Oct 2011 13:03:49 +0000 (+0200) Subject: Fixed default route handling X-Git-Tag: 2.0.0_Beta_1~1691 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba6982ae82d0846e8d57260148147e002394633c;p=GitHub%2FWoltLab%2FWCF.git Fixed default route handling --- 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']); } }