From b59044f19ce4ff77ca078de544ced32df327f0f6 Mon Sep 17 00:00:00 2001 From: "Paula V. Quispe" Date: Thu, 3 Dec 2015 10:16:21 -0400 Subject: [PATCH] PM-3940 --- gulliver/system/class.g.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) 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; }