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:
parent
a402d619b4
commit
4eb7485b39
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user