From: Alexander Ebert Date: Thu, 19 Feb 2015 09:45:25 +0000 (+0100) Subject: Fixed empty title appended as query string argument X-Git-Tag: 2.1.0_RC_2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0be18dca2fe9060bb0caaef5dc57be9a5bfcc4bb;p=GitHub%2FWoltLab%2FWCF.git Fixed empty title appended as query string argument --- diff --git a/wcfsetup/install/files/lib/system/request/FlexibleRoute.class.php b/wcfsetup/install/files/lib/system/request/FlexibleRoute.class.php index 163a47934e..81f433239f 100644 --- a/wcfsetup/install/files/lib/system/request/FlexibleRoute.class.php +++ b/wcfsetup/install/files/lib/system/request/FlexibleRoute.class.php @@ -172,6 +172,9 @@ class FlexibleRoute implements IRoute { else { // routes are build from left-to-right if (empty($components[$value])) { + // drop empty components to avoid them being appended as query string argument + unset($components[$value]); + break; }