mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
[feature/attach-dl] Ensure only one operation is performed
PHPBB3-11042
This commit is contained in:
@@ -141,6 +141,18 @@ $archive = $request->variable('archive', '.tar');
|
||||
$mode = request_var('mode', '');
|
||||
$thumbnail = request_var('t', false);
|
||||
|
||||
// Ensure we're only performing one operation
|
||||
if ($download_id)
|
||||
{
|
||||
$topic_id = false;
|
||||
$post_id = false;
|
||||
}
|
||||
|
||||
if ($post_id)
|
||||
{
|
||||
$topic_id = false;
|
||||
}
|
||||
|
||||
// Start session management, do not update session page.
|
||||
$user->session_begin(false);
|
||||
$auth->acl($user->data);
|
||||
|
Reference in New Issue
Block a user