mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
c22983cbdb
commit
de404002c7
1 changed files with 1 additions and 1 deletions
|
@ -676,7 +676,7 @@ class fileupload
|
|||
{
|
||||
$upload['name'] = utf8_basename($source_file);
|
||||
$upload['size'] = 0;
|
||||
$mimetype = '';
|
||||
$mimetype = 'application/octet-stream';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue