1
0
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:
Marc Alexander
2021-07-25 20:47:41 +02:00
parent 8ea4d235bf
commit 3913544782
4 changed files with 12 additions and 5 deletions

View File

@@ -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();
}