1
0
mirror of synced 2024-11-22 01:04:23 +01:00

Handle multiple namespaces in MSOffice's content types

This commit is contained in:
jvoisin 2020-11-06 15:29:42 +01:00
parent 96e639dfd3
commit b84f73c5c3

View File

@ -271,7 +271,7 @@ class MSOfficeParser(ZipParser):
return False
if len(namespace.items()) != 1:
return False # there should be only one namespace for Types
logging.debug("Got several namespaces for Types: %s", namespace.items())
removed_fnames = set()
with zipfile.ZipFile(self.filename) as zin: