aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/download.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/download.php')
-rw-r--r--phpBB/download.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/download.php b/phpBB/download.php
index 790938a7d4..c2b1ef8dda 100644
--- a/phpBB/download.php
+++ b/phpBB/download.php
@@ -63,7 +63,8 @@ if ($attachment['is_orphan'])
trigger_error('ERROR_NO_ATTACHMENT');
}
- $extensions = $cache->obtain_attach_extensions();
+ // Obtain all extensions...
+ $extensions = $cache->obtain_attach_extensions(true);
}
else
{
@@ -106,14 +107,14 @@ else
}
else
{
- $row['forum_id'] = 0;
+ $row['forum_id'] = false;
if (!$auth->acl_get('u_pm_download'))
{
trigger_error('SORRY_AUTH_VIEW_ATTACH');
}
}
- // disallowed ?
+ // disallowed?
$extensions = array();
if (!extension_allowed($row['forum_id'], $attachment['extension'], $extensions))
{