diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-04-26 21:30:02 +0200 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-04-26 22:10:06 +0200 |
commit | e25e411e2b7281e2be8a4e7c7da46a281eb32e47 (patch) | |
tree | 0baa5dad400b7f6631f441da238927507320142a | |
parent | 59a178f3cba87f536826df251120f03980a556c6 (diff) | |
download | forums-e25e411e2b7281e2be8a4e7c7da46a281eb32e47.tar forums-e25e411e2b7281e2be8a4e7c7da46a281eb32e47.tar.gz forums-e25e411e2b7281e2be8a4e7c7da46a281eb32e47.tar.bz2 forums-e25e411e2b7281e2be8a4e7c7da46a281eb32e47.tar.xz forums-e25e411e2b7281e2be8a4e7c7da46a281eb32e47.zip |
[ticket/12101] Remove HTML redirect workaround for Microsoft/IIS webserver
The code was added as a workaround for bugs in very old versions of IIS,
dating back to 2002: see commit 849d76697444f4e3523845f8c96569ccde57d868.
Newer IIS versions handle the 'Location' header just fine, so we can avoid
the unnecessary HTML page for redirects. Given that it seems to work fine
since IIS 6.0 (on WinServer 2003), I don't think it's worth adding a special
check for earlier versions as they are no longer supported by MS as well.
PHPBB3-12101
-rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4fdeb12d3a..e2e9b509d7 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2389,7 +2389,7 @@ function redirect($url, $return = false, $disable_cd_check = false) } // Redirect via an HTML form for PITA webservers - if (@preg_match('#Microsoft|WebSTAR|Xitami#', getenv('SERVER_SOFTWARE'))) + if (@preg_match('#WebSTAR|Xitami#', getenv('SERVER_SOFTWARE'))) { header('Refresh: 0; URL=' . $url); |