From 2ef8b7448e38a33bdc0a69141ad520ff644bc0bc Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 4 Dec 2013 11:33:18 +0100 Subject: [PATCH] LinkHandler now passes application-component to Route instance --- .../install/files/lib/system/request/LinkHandler.class.php | 1 - wcfsetup/install/files/lib/system/request/Route.class.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1