diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 154473d50..350eb1f7d 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -5495,16 +5495,31 @@ class G } break; case 'docx': + if ($docType[1] == 'vnd.openxmlformats-officedocument.wordprocessingml.document') { + $res->status = true; + return $res; + } + break; case 'pptx': + if ($docType[1] == 'vnd.openxmlformats-officedocument.presentationml.presentation') { + $res->status = true; + return $res; + } + break; case 'xlsx': - if ($docType[1] == 'zip') { + if ($docType[1] == 'vnd.openxmlformats-officedocument.spreadsheetml.sheet') { $res->status = true; return $res; } break; case 'exe': + if ($docType[1] == 'x-msdownload' || $docType[1] == 'x-dosexec') { + $res->status = true; + return $res; + } + break; case 'wmv': - if($docType[1] == 'octet-stream'){ + if($docType[1] == 'x-ms-asf' || $docType[1] == 'x-ms-wmv'){ $res->status = true; return $res; }