Skip to content

Commit

Permalink
#550 new encrypted document mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Oct 21, 2019
1 parent 5586743 commit 0221f9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion analyzers/FileInfo/submodules/submodule_oletools.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def check_file(self, **kwargs):
'PPTX'
] or (kwargs.get('mimetype').startswith("application/vnd.openxmlformats-officedocument") or
kwargs.get('mimetype').startswith("application/encrypted") or
kwargs.get('mimetype').startswith("application/vnd.ms-")
kwargs.get('mimetype').startswith("application/vnd.ms-") or
kwargs.get('mimetype').startswith("application/msword")
):
if kwargs.get('mimetype').startswith("application/encrypted") and not is_encrypted(kwargs.get('file')):
return False
Expand Down

0 comments on commit 0221f9c

Please sign in to comment.