[feature/attach-dl] Ensure only one operation is performed

PHPBB3-11042
This commit is contained in:
Fyorl 2012-08-04 14:51:11 +01:00
parent ed1435d040
commit 50af76da7d

View file

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