mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
Add sid to redirects
git-svn-id: file:///svn/phpbb/trunk@2782 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -84,7 +84,7 @@ if ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset(
|
||||
|
||||
$userdata = $session->create($userdata['session_id'], $row['user_id'], $autologin, $this_page, $session_browser);
|
||||
|
||||
header($header_location . $redirect);
|
||||
header($header_location . $redirect . $SID);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
@@ -113,8 +113,7 @@ if ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset(
|
||||
$session->destroy($userdata);
|
||||
}
|
||||
|
||||
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx$SID";
|
||||
header($header_location . $redirect);
|
||||
header($header_location . $redirect . $SID);
|
||||
exit;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user