diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-22 23:17:06 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-03-22 23:17:06 +0000 |
| commit | c2ded8a7aa253afaacb63ed6a987e600b0a92af8 (patch) | |
| tree | eec24abea0b8f1f53b3b872be8ec04ed0e7c185e /phpBB/profile.php | |
| parent | 9f651601a31578b7bfb59f445483863d567a4d95 (diff) | |
| download | forums-c2ded8a7aa253afaacb63ed6a987e600b0a92af8.tar forums-c2ded8a7aa253afaacb63ed6a987e600b0a92af8.tar.gz forums-c2ded8a7aa253afaacb63ed6a987e600b0a92af8.tar.bz2 forums-c2ded8a7aa253afaacb63ed6a987e600b0a92af8.tar.xz forums-c2ded8a7aa253afaacb63ed6a987e600b0a92af8.zip | |
More header fixing
git-svn-id: file:///svn/phpbb/trunk@2411 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
| -rw-r--r-- | phpBB/profile.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php index 25965087de..213807a49f 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -83,7 +83,8 @@ if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) { if ( !$userdata['session_logged_in'] && $mode == 'editprofile' ) { - header("Location: " . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); + $header_location = ( @preg_match("/Microsoft|WebSTAR/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; + header($header_location . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=editprofile", true)); exit; } @@ -108,7 +109,8 @@ if ( isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']) ) } else { - header("Location: " . append_sid("index.$phpEx", true)); + $header_location = ( @preg_match("/Microsoft|WebSTAR/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: "; + header($header_location . append_sid("index.$phpEx", true)); exit; } |
