From b92fa02d508f09c4152b5df7ade5943df4b052b1 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" <psotfx@users.sourceforge.net> Date: Mon, 2 Dec 2002 17:01:50 +0000 Subject: [PATCH] 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 --- phpBB/includes/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index b03e3824f8..81ef44add9 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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; }