]> git.wh0rd.org Git - tt-rss.git/commitdiff
add sanity check for mime_content_type()
authorAndrew Dolgov <noreply@fakecake.org>
Sun, 29 Oct 2017 07:17:43 +0000 (10:17 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Sun, 29 Oct 2017 07:17:43 +0000 (10:17 +0300)
include/sanity_check.php

index 964dce03c39e3621103519250bc54f2c166f4751..39962219ffbd0b2cd379f839f1df652fe1e33e32 100755 (executable)
                                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.");
                        }