mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/attach-dl] Ensure only one operation is performed
PHPBB3-11042
This commit is contained in:
parent
ed1435d040
commit
50af76da7d
1 changed files with 12 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue