mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-31 03:59:52 +02:00
[ticket/16825] Add link hashes to logout links
PHPBB3-16825
This commit is contained in:
@@ -103,7 +103,7 @@ switch ($mode)
|
||||
break;
|
||||
|
||||
case 'logout':
|
||||
if ($user->data['user_id'] != ANONYMOUS && $request->is_set('sid') && $request->variable('sid', '') === $user->session_id)
|
||||
if ($user->data['user_id'] != ANONYMOUS && check_link_hash($request->variable('hash', ''), 'ucp_logout'))
|
||||
{
|
||||
$user->session_kill();
|
||||
}
|
||||
|
Reference in New Issue
Block a user