mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Add sid to redirects
git-svn-id: file:///svn/phpbb/trunk@2782 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d700814a7d
commit
962f439057
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
$userdata = $session->create($userdata['session_id'], $row['user_id'], $autologin, $this_page, $session_browser);
|
||||||
|
|
||||||
header($header_location . $redirect);
|
header($header_location . $redirect . $SID);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -113,8 +113,7 @@ if ( isset($HTTP_POST_VARS['login']) || isset($HTTP_GET_VARS['login']) || isset(
|
||||||
$session->destroy($userdata);
|
$session->destroy($userdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
$redirect = ( !empty($HTTP_POST_VARS['redirect']) ) ? $HTTP_POST_VARS['redirect'] : "index.$phpEx$SID";
|
header($header_location . $redirect . $SID);
|
||||||
header($header_location . $redirect);
|
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue