mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
Merge branch 'develop-olympus' into develop
Conflicts: phpBB/includes/session.php
This commit is contained in:
commit
54bd800dab
1 changed files with 10 additions and 2 deletions
|
@ -342,8 +342,16 @@ class phpbb_session
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Is session_id is set or session_id is set and matches the url param if required
|
// if no session id is set, redirect to index.php
|
||||||
if (!empty($this->session_id) && (!defined('NEED_SID') || (isset($_GET['sid']) && $this->session_id === request_var('sid', ''))))
|
$session_id = $request->variable('sid', '');
|
||||||
|
if (defined('NEED_SID') && (empty($session_id) || $this->session_id !== $session_id))
|
||||||
|
{
|
||||||
|
send_status_line(401, 'Not authorized');
|
||||||
|
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));
|
||||||
|
}
|
||||||
|
|
||||||
|
// if session id is set
|
||||||
|
if (!empty($this->session_id))
|
||||||
{
|
{
|
||||||
$sql = 'SELECT u.*, s.*
|
$sql = 'SELECT u.*, s.*
|
||||||
FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
|
FROM ' . SESSIONS_TABLE . ' s, ' . USERS_TABLE . " u
|
||||||
|
|
Loading…
Add table
Reference in a new issue