mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +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:
@@ -157,7 +157,7 @@ function upload_attachment($forum_id, $filename, $local = false, $local_storage
|
||||
obtain_attach_extensions($extensions);
|
||||
|
||||
// Check Extension
|
||||
if (!extension_allowed($forum_id, $filedata['extension']))
|
||||
if (!extension_allowed($forum_id, $filedata['extension'], $extensions))
|
||||
{
|
||||
$filedata['error'][] = sprintf($user->lang['DISALLOWED_EXTENSION'], $filedata['extension']);
|
||||
$filedata['post_attach'] = false;
|
||||
|
Reference in New Issue
Block a user