mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 13:48:55 +00: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:
parent
c993b7baeb
commit
b92fa02d50
1 changed files with 5 additions and 0 deletions
|
@ -707,6 +707,11 @@ function redirect($url)
|
||||||
// line and replace 'Location: ' . with $header_location . in the line following it.
|
// 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: ';
|
// $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);
|
header('Location: ' . $server_protocol . $server_name . $script_name . $server_port . $url);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue