From 9f873410469882cb202ec8bd4bebc956c163ae91 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sat, 9 Aug 2014 16:23:01 +0200 Subject: [PATCH] [ticket/12949] Check if mime_content_type is actually callable PHPBB3-12949 --- phpBB/phpbb/mimetype/content_guesser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/mimetype/content_guesser.php b/phpBB/phpbb/mimetype/content_guesser.php index 9c83e8dd73..f3ad7f5f41 100644 --- a/phpBB/phpbb/mimetype/content_guesser.php +++ b/phpBB/phpbb/mimetype/content_guesser.php @@ -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'); } /**