mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/10851] Set disallowed content to empty array if checking is disabled
The disallowed content defaults to a standard set of mimetype triggers by default. If one doesn't want to check the attachments mimetype triggers then we need to set the disallowed content to an empty array. PHPBB3-10851
This commit is contained in:
parent
801a1f9ab9
commit
519adb5060
1 changed files with 4 additions and 0 deletions
|
@ -394,6 +394,10 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
|
||||||
{
|
{
|
||||||
$upload->set_disallowed_content(explode('|', $config['mime_triggers']));
|
$upload->set_disallowed_content(explode('|', $config['mime_triggers']));
|
||||||
}
|
}
|
||||||
|
else if (!$config['check_attachment_content'])
|
||||||
|
{
|
||||||
|
$upload->set_disallowed_content(array());
|
||||||
|
}
|
||||||
|
|
||||||
if (!$local)
|
if (!$local)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue