1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-08 08:35:31 +02:00

[ticket/11148] Always use the output of the mimetype guesser in get_mimetype

PHPBB3-11148
This commit is contained in:
Marc Alexander 2014-06-01 00:19:22 +02:00
parent a402d619b4
commit 4eb7485b39

View File

@ -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;