mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/attach-dl] Use extension_allowed() again.
PHPBB3-11042
This commit is contained in:
@@ -290,11 +290,8 @@ else if ($download_id)
|
||||
}
|
||||
}
|
||||
|
||||
// disallowed?
|
||||
$extensions = $cache->obtain_attach_extensions($row['forum_id']);
|
||||
|
||||
$attachments_filtered = phpbb_filter_disallowed_extensions($extensions, array($attachment));
|
||||
if (empty($attachments_filtered))
|
||||
$extensions = array();
|
||||
if (!extension_allowed($row['forum_id'], $attachment['extension'], $extensions))
|
||||
{
|
||||
send_status_line(404, 'Forbidden');
|
||||
trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension']));
|
||||
|
Reference in New Issue
Block a user