allow application/x-zip-compressed for extensions

This commit is contained in:
Uwe Steinmann 2020-02-26 21:07:48 +01:00
parent 3448734024
commit f1ad164f44

View File

@ -78,7 +78,7 @@ elseif ($action == "upload") { /* {{{ */
if($_FILES['userfile']['error']) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
if($_FILES['userfile']['type'] != 'application/zip') {
if(!in_array($_FILES['userfile']['type'], array('application/zip', 'application/x-zip-compressed'))) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}
// $extMgr = new SeedDMS_Extension_Mgr($settings->_rootDir."/ext", $settings->_cacheDir);