From: Andrew Dolgov Date: Sun, 29 Oct 2017 07:17:43 +0000 (+0300) Subject: add sanity check for mime_content_type() X-Git-Tag: 17.12~115 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8716ec20d6365c2dae8012ce7c1d874594e488a1;p=tt-rss.git add sanity check for mime_content_type() --- diff --git a/include/sanity_check.php b/include/sanity_check.php index 964dce03..39962219 100755 --- a/include/sanity_check.php +++ b/include/sanity_check.php @@ -149,6 +149,10 @@ array_push($errors, "PHP safe mode setting is obsolete and not supported by tt-rss."); } + if (!function_exists("mime_content_type")) { + array_push($errors, "PHP function mime_content_type() is missing, try enabling fileinfo module."); + } + if (!class_exists("DOMDocument")) { array_push($errors, "PHP support for DOMDocument is required, but was not found."); }