Fixed 'index.php/' appended for no reason in compatibility mode
authorAlexander Ebert <ebert@woltlab.com>
Thu, 26 Feb 2015 18:13:10 +0000 (19:13 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 26 Feb 2015 18:13:10 +0000 (19:13 +0100)
wcfsetup/install/files/lib/system/request/Route.class.php

index 92a3843ae96c02071ff094ee38a3dc37e02412da..2d95204a97166f5aa7add691dc4ded38c7bf3876 100644 (file)
@@ -332,8 +332,8 @@ class Route implements IRoute {
                                $link = '?' . $link;
                        }
                }
-               else if (!URL_OMIT_INDEX_PHP) {
-                       $link = (URL_LEGACY_MODE ? 'index.php/' : (!empty($link) ? '?' : '')) . $link;
+               else if (!URL_OMIT_INDEX_PHP && !empty($link)) {
+                       $link = (URL_LEGACY_MODE ? 'index.php/' : '?') . $link;
                }
                
                if (!empty($components)) {