Fixed default route handling
authorAlexander Ebert <ebert@woltlab.com>
Thu, 13 Oct 2011 13:03:49 +0000 (15:03 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 13 Oct 2011 13:03:49 +0000 (15:03 +0200)
wcfsetup/install/files/lib/system/request/Route.class.php

index 0c769c2d05e81cb60001777eab54e3b65b876c04..039f378c74ca7b911741ab53b50aa6fbffed1a69 100644 (file)
@@ -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']);
                        }
                }