mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-22 19:07:27 +01:00
Merge pull request #2851 from marc1706/ticket/12949
[ticket/12949] Check if mime_content_type is actually callable
This commit is contained in:
commit
5c93735557
@ -20,7 +20,7 @@ class content_guesser extends guesser_base
|
||||
*/
|
||||
public function is_supported()
|
||||
{
|
||||
return function_exists('mime_content_type');
|
||||
return function_exists('mime_content_type') && is_callable('mime_content_type');
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user