From 816a2745bc6319820e32119dba48cac49828514c Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 16 Jan 2024 15:48:47 +0100 Subject: [PATCH] Resolve #1392 --- snappymail/v/0.0.0/app/libraries/RainLoop/ActionsAdmin.php | 2 +- snappymail/v/0.0.0/app/libraries/snappymail/integrity.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/ActionsAdmin.php b/snappymail/v/0.0.0/app/libraries/RainLoop/ActionsAdmin.php index 5b8cef13d..6e4613fec 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/ActionsAdmin.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/ActionsAdmin.php @@ -290,7 +290,7 @@ class ActionsAdmin extends Actions ] ]; - foreach (['APCu', 'cURL','GnuPG','GD','Gmagick','Imagick','iconv','intl','LDAP','OpenSSL','pdo_mysql','pdo_pgsql','pdo_sqlite','redis','Sodium','Tidy','uuid','XXTEA','Zip'] as $name) { + foreach (['APCu', 'cURL','Fileinfo','GnuPG','GD','Gmagick','Imagick','iconv','intl','LDAP','OpenSSL','pdo_mysql','pdo_pgsql','pdo_sqlite','redis','Sodium','Tidy','uuid','XXTEA','Zip'] as $name) { $aResult['php'][] = [ 'name' => ('OpenSSL' === $name && \defined('OPENSSL_VERSION_TEXT')) ? OPENSSL_VERSION_TEXT : $name, 'loaded' => \extension_loaded(\strtolower($name)), diff --git a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php index 66155727a..be4e8327f 100644 --- a/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php +++ b/snappymail/v/0.0.0/app/libraries/snappymail/integrity.php @@ -103,7 +103,9 @@ abstract class Integrity 'ctype' => extension_loaded('ctype'), 'json' => function_exists('json_decode'), 'libxml' => function_exists('libxml_use_internal_errors'), - 'dom' => class_exists('DOMDocument') + 'dom' => class_exists('DOMDocument'), + // https://github.com/the-djmaze/snappymail/issues/1392 + 'fileinfo' => extension_loaded('fileinfo') // https://github.com/the-djmaze/snappymail/issues/392 // 'phar' => class_exists('PharData') );