From: Alexander Ebert Date: Thu, 26 Feb 2015 18:13:10 +0000 (+0100) Subject: Fixed 'index.php/' appended for no reason in compatibility mode X-Git-Tag: 2.1.0~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3a80c04c92fab9dcc84d520717ed72fd1ef0a4ff;p=GitHub%2FWoltLab%2FWCF.git Fixed 'index.php/' appended for no reason in compatibility mode --- 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)) {