LinkHandler now passes application-component to Route instance
authorAlexander Ebert <ebert@woltlab.com>
Wed, 4 Dec 2013 10:33:18 +0000 (11:33 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 4 Dec 2013 10:33:18 +0000 (11:33 +0100)
wcfsetup/install/files/lib/system/request/LinkHandler.class.php
wcfsetup/install/files/lib/system/request/Route.class.php

index 5b8926b109bde5f13b55574526a767c2d8ef13d0..5a51c788640d97c95ea5a8820a346c5f295df700 100644 (file)
@@ -70,7 +70,6 @@ class LinkHandler extends SingletonFactory {
                $appendSession = true;
                if (isset($parameters['application'])) {
                        $abbreviation = $parameters['application'];
-                       unset($parameters['application']);
                }
                if (isset($parameters['isRaw'])) {
                        $isRaw = $parameters['isRaw'];
index 0ce594bb96f60163f608a9beceefc9891d6fef7b..49f222c32ef292f6ed6d8aed5e4af755652fd9b4 100644 (file)
@@ -254,6 +254,9 @@ class Route {
         * @return      string
         */
        public function buildLink(array $components) {
+               // drop application component to avoid being appended as query string
+               unset($components['application']);
+               
                $link = '';
                
                // handle default values for controller