[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 849d766974.

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
This commit is contained in:
Alexander Köplinger 2015-04-26 21:30:02 +02:00
parent 59a178f3cb
commit e25e411e2b

View file

@ -2389,7 +2389,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
} }
// Redirect via an HTML form for PITA webservers // 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); header('Refresh: 0; URL=' . $url);