Remove exec when trying to compute mimetype, =achris
Remove exec when trying to compute mimetype, =achris
diff --git a/src/configs/Config.php b/src/configs/Config.php
index ace0c2c8a..0773049cf 100755
--- a/src/configs/Config.php
+++ b/src/configs/Config.php
@@ -357,7 +357,7 @@ if (!nsdefined("BASE_URL")) {
nsdefine('BASE_URL', NAME_SERVER);
}
if (!nsdefined('LOGO')) {
- /* these defines were added to the profile at same time. So we add them
+ /* these defines were added to the profile at same time. So we add them
all in one go to both the case where we have no profile and in the
older profile case where they were not defined.
*/
diff --git a/src/library/Utility.php b/src/library/Utility.php
index c69df5fcd..657239ccf 100755
--- a/src/library/Utility.php
+++ b/src/library/Utility.php
@@ -1852,8 +1852,6 @@ function mimeType($file_name)
if (class_exists("\finfo")) {
$finfo = new \finfo(FILEINFO_MIME);
$mime_type = $finfo->file($file_name);
- } else if(function_exists("exec")) {
- $mime_type = exec('file -b --mime-type ' . $file_name);
} else {
$last_chars = substr($file_name, -4);
$mime_types = [