diff options
Diffstat (limited to 'phpBB/download.php')
| -rw-r--r-- | phpBB/download.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/download.php b/phpBB/download.php index eff6d0c603..2cac956a53 100644 --- a/phpBB/download.php +++ b/phpBB/download.php @@ -87,7 +87,8 @@ else } // disallowed ? -if (!extension_allowed($row['forum_id'], $attachment['extension'])) +$extensions = array(); +if (!extension_allowed($row['forum_id'], $attachment['extension'], $extensions)) { trigger_error(sprintf($user->lang['EXTENSION_DISABLED_AFTER_POSTING'], $attachment['extension'])); } @@ -207,7 +208,7 @@ function send_file_to_browser($attachment, $upload_dir, $category) header("Content-length: $size"); } $result = @readfile($filename); - + if (!$result) { trigger_error('Unable to deliver file.<br />Error was: ' . $php_errormsg, E_USER_WARNING); |
