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:
Paul S. Owen 2002-12-02 17:01:50 +00:00
parent c993b7baeb
commit b92fa02d50

View file

@ -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;
}