From: Alexander Ebert Date: Wed, 4 Dec 2013 10:33:18 +0000 (+0100) Subject: LinkHandler now passes application-component to Route instance X-Git-Tag: 2.0.0_RC_5~14^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ef8b7448e38a33bdc0a69141ad520ff644bc0bc;p=GitHub%2FWoltLab%2FWCF.git LinkHandler now passes application-component to Route instance --- diff --git a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php index 5b8926b109..5a51c78864 100644 --- a/wcfsetup/install/files/lib/system/request/LinkHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/LinkHandler.class.php @@ -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']; diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index 0ce594bb96..49f222c32e 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -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