From 3a80c04c92fab9dcc84d520717ed72fd1ef0a4ff Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 26 Feb 2015 19:13:10 +0100 Subject: [PATCH] Fixed 'index.php/' appended for no reason in compatibility mode --- wcfsetup/install/files/lib/system/request/Route.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/Route.class.php b/wcfsetup/install/files/lib/system/request/Route.class.php index 92a3843ae9..2d95204a97 100644 --- a/wcfsetup/install/files/lib/system/request/Route.class.php +++ b/wcfsetup/install/files/lib/system/request/Route.class.php @@ -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)) { -- 2.20.1