1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Changes to add session_id to newest redirect were failing ... fixed

git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3299 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen
2003-01-10 13:27:35 +00:00
parent 94856fcb83
commit 88731651b0
2 changed files with 15 additions and 6 deletions

View File

@@ -697,7 +697,12 @@ function phpbb_realpath($path)
function redirect($url)
{
global $board_config;
global $db, $board_config;
if (!empty($db))
{
$db->sql_close();
}
$server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://';
$server_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['server_name']));
@@ -718,4 +723,4 @@ function redirect($url)
exit;
}
?>
?>