1
0
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:
Marc Alexander
2014-01-30 23:04:29 +01:00
parent c22983cbdb
commit de404002c7

View File

@ -676,7 +676,7 @@ class fileupload
{
$upload['name'] = utf8_basename($source_file);
$upload['size'] = 0;
$mimetype = '';
$mimetype = 'application/octet-stream';
}
else
{