From 8906e07d414a2fa379e3aba0b96b4f3ea468699f Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 17 Sep 2004 09:11:48 +0000 Subject: - extensions_allowed changed a bit. git-svn-id: file:///svn/phpbb/trunk@4986 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/download.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'phpBB/download.php') 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.
Error was: ' . $php_errormsg, E_USER_WARNING); -- cgit v1.2.1