aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/functions_upload.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 6ca430d9ac..f50ce9432f 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -231,12 +231,7 @@ class filespec
{
if ($this->mimetype_guesser !== null)
{
- $mimetype = $this->mimetype_guesser->guess($filename);
-
- if ($mimetype !== 'application/octet-stream')
- {
- $this->mimetype = $mimetype;
- }
+ $this->mimetype = $this->mimetype_guesser->guess($filename);
}
return $this->mimetype;