Skip to content

Commit

Permalink
Merge pull request #347 from CybercentreCanada/mo
Browse files Browse the repository at this point in the history
Adding resource/mo as file type
  • Loading branch information
cccs-kevin authored Sep 2, 2021
2 parents 9168aa8 + d47a7f3 commit de1de13
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions assemblyline/common/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ class ServiceStatus(enum.IntEnum):
'resource/ccz': True,
'resource/cpk': True,
'resource/dz': True,
'resource/mo': True,
'resource/pak': True,
'resource/ptc': True,
'resource/sbm': True,
Expand Down
1 change: 1 addition & 0 deletions assemblyline/common/identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@
'application/x-mach-binary': 'executable/mach-o',
'application/vnd.ms-outlook': 'document/office/email',
'application/x-iso9660-image': 'archive/iso',
'application/x-gettext-translation': 'resource/mo',
}

tl_patterns = [[x[0], re.compile(x[1], re.IGNORECASE)] for x in tl_patterns]
Expand Down
1 change: 1 addition & 0 deletions test/test_identify.py
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,7 @@ def test_tl_patterns(tl, string):
('application/x-mach-binary', 'executable/mach-o'),
('application/vnd.ms-outlook', 'document/office/email'),
('application/x-iso9660-image', 'archive/iso'),
('application/x-gettext-translation', 'resource/mo'),
]
)
def test_trusted_mimes(mime, translated_type):
Expand Down

0 comments on commit de1de13

Please sign in to comment.