mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-09 00:55:23 +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)
|
if ($this->mimetype_guesser !== null)
|
||||||
{
|
{
|
||||||
$mimetype = $this->mimetype_guesser->guess($filename);
|
$this->mimetype = $this->mimetype_guesser->guess($filename);
|
||||||
|
|
||||||
if ($mimetype !== 'application/octet-stream')
|
|
||||||
{
|
|
||||||
$this->mimetype = $mimetype;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->mimetype;
|
return $this->mimetype;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user