diff options
Diffstat (limited to 'libmat2/office.py')
| -rw-r--r-- | libmat2/office.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmat2/office.py b/libmat2/office.py index 19e2ce5..f77c0f5 100644 --- a/libmat2/office.py +++ b/libmat2/office.py | |||
| @@ -88,6 +88,7 @@ class MSOfficeParser(ZipParser): | |||
| 88 | r'^\[Content_Types\]\.xml$', | 88 | r'^\[Content_Types\]\.xml$', |
| 89 | r'^_rels/\.rels$', | 89 | r'^_rels/\.rels$', |
| 90 | r'^xl/sharedStrings\.xml$', # https://docs.microsoft.com/en-us/office/open-xml/working-with-the-shared-string-table | 90 | r'^xl/sharedStrings\.xml$', # https://docs.microsoft.com/en-us/office/open-xml/working-with-the-shared-string-table |
| 91 | r'^xl/calcChain\.xml$', | ||
| 91 | r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$', | 92 | r'^(?:word|ppt|xl)/_rels/document\.xml\.rels$', |
| 92 | r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$', | 93 | r'^(?:word|ppt|xl)/_rels/footer[0-9]*\.xml\.rels$', |
| 93 | r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$', | 94 | r'^(?:word|ppt|xl)/_rels/header[0-9]*\.xml\.rels$', |
| @@ -108,6 +109,8 @@ class MSOfficeParser(ZipParser): | |||
| 108 | r'^ppt/slideMasters/slideMaster[0-9]+\.xml', | 109 | r'^ppt/slideMasters/slideMaster[0-9]+\.xml', |
| 109 | r'^ppt/slideMasters/_rels/slideMaster[0-9]+\.xml\.rels', | 110 | r'^ppt/slideMasters/_rels/slideMaster[0-9]+\.xml\.rels', |
| 110 | r'^xl/worksheets/_rels/sheet[0-9]+\.xml\.rels', | 111 | r'^xl/worksheets/_rels/sheet[0-9]+\.xml\.rels', |
| 112 | r'^xl/drawings/vmlDrawing[0-9]+\.vml', | ||
| 113 | r'^xl/drawings/drawing[0-9]+\.xml', | ||
| 111 | })) | 114 | })) |
| 112 | self.files_to_omit = set(map(re.compile, { # type: ignore | 115 | self.files_to_omit = set(map(re.compile, { # type: ignore |
| 113 | r'^\[trash\]/', | 116 | r'^\[trash\]/', |
| @@ -124,6 +127,7 @@ class MSOfficeParser(ZipParser): | |||
| 124 | # Additional presentation-wide properties like printing properties, | 127 | # Additional presentation-wide properties like printing properties, |
| 125 | # presentation show properties etc. | 128 | # presentation show properties etc. |
| 126 | r'^(?:word|ppt|xl)/presProps\.xml$', | 129 | r'^(?:word|ppt|xl)/presProps\.xml$', |
| 130 | r'^(?:word|ppt|xl)/comments[0-9]+\.xml$', | ||
| 127 | 131 | ||
| 128 | # we have an allowlist in self.files_to_keep, | 132 | # we have an allowlist in self.files_to_keep, |
| 129 | # so we can trash everything else | 133 | # so we can trash everything else |
