Fixed empty title appended as query string argument
authorAlexander Ebert <ebert@woltlab.com>
Thu, 19 Feb 2015 09:45:25 +0000 (10:45 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 19 Feb 2015 09:45:25 +0000 (10:45 +0100)
wcfsetup/install/files/lib/system/request/FlexibleRoute.class.php

index 163a47934eb01fe7569bb8c3e11fa403f734c348..81f433239f33238412d966d48d06af6fa753a539 100644 (file)
@@ -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;
                                        }