mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Replace the old Redirect HTTP code when we detect CGI IIS/etc. ... to try and ensure cookie is delivered (I knew we changed this for a reason ...). Let's see if this works
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3158 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -707,6 +707,11 @@ function redirect($url)
|
||||
// line and replace 'Location: ' . with $header_location . in the line following it.
|
||||
|
||||
// $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
|
||||
|
||||
if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')))
|
||||
{
|
||||
header('HTTP/1.0 302 Redirect');
|
||||
}
|
||||
header('Location: ' . $server_protocol . $server_name . $script_name . $server_port . $url);
|
||||
exit;
|
||||
}
|
||||
|
Reference in New Issue
Block a user