Update dl.php

This commit is contained in:
Roman Kelesidis 2023-12-16 13:12:14 +07:00
parent e2739cdf87
commit 529da96e1c

6
dl.php
View File

@ -226,7 +226,7 @@ if ($download_mode == PHYSICAL_LINK)
header('Location: ' . $url); header('Location: ' . $url);
exit; exit;
} }
else elseif ($download_mode == INLINE_LINK)
{ {
if ((IS_GUEST && !$bb_cfg['captcha']['disabled']) && !bb_captcha('check')) if ((IS_GUEST && !$bb_cfg['captcha']['disabled']) && !bb_captcha('check'))
{ {
@ -252,3 +252,7 @@ else
send_file_to_browser($attachment, $upload_dir); send_file_to_browser($attachment, $upload_dir);
exit; exit;
} }
else
{
bb_die('Incorrect download mode');
}