mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 04:24:31 +02:00
[ticket/11148] Default to application/octet-stream if no mimetype given
This should prevent us from having an empty mimetype while uploading a file using local_upload(). PHPBB3-11148
This commit is contained in:
@ -676,7 +676,7 @@ class fileupload
|
||||
{
|
||||
$upload['name'] = utf8_basename($source_file);
|
||||
$upload['size'] = 0;
|
||||
$mimetype = '';
|
||||
$mimetype = 'application/octet-stream';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user