mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 01:51: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['name'] = utf8_basename($source_file);
|
||||||
$upload['size'] = 0;
|
$upload['size'] = 0;
|
||||||
$mimetype = '';
|
$mimetype = 'application/octet-stream';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user