mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 18:26:32 +02:00
- extensions_allowed changed a bit.
git-svn-id: file:///svn/phpbb/trunk@4986 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user