mirror of https://github.com/CIRCL/PyCIRCLean
Add alias for .ogg files
parent
77e0d55f95
commit
d80fb6d33a
|
@ -31,7 +31,9 @@ class Config:
|
||||||
'application/x-dosexec': 'application/x-msdos-program',
|
'application/x-dosexec': 'application/x-msdos-program',
|
||||||
# Other apps with confusing mimetypes
|
# Other apps with confusing mimetypes
|
||||||
'application/rtf': 'text/rtf',
|
'application/rtf': 'text/rtf',
|
||||||
'application/rar': 'application/x-rar'
|
'application/rar': 'application/x-rar',
|
||||||
|
'application/ogg': 'audio/ogg',
|
||||||
|
'audio/ogg': 'application/ogg'
|
||||||
}
|
}
|
||||||
|
|
||||||
# EXTS
|
# EXTS
|
||||||
|
|
|
@ -112,7 +112,7 @@ class File(FileBase):
|
||||||
strict=False)
|
strict=False)
|
||||||
if expected_extensions:
|
if expected_extensions:
|
||||||
if self.has_extension and self.extension not in expected_extensions:
|
if self.has_extension and self.extension not in expected_extensions:
|
||||||
self.make_dangerous('Extension does not match expected extensions for this mimetype')
|
self.make_dangerous('Extension does not match expected extensions ({}) for this mimetype'.format(expected_extensions))
|
||||||
|
|
||||||
def _check_filename(self):
|
def _check_filename(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue