diff options
Diffstat (limited to 'libmat/office.py')
| -rw-r--r-- | libmat/office.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat/office.py b/libmat/office.py index bd4bd97..5a57b57 100644 --- a/libmat/office.py +++ b/libmat/office.py | |||
| @@ -77,6 +77,8 @@ class OpenXmlStripper(archive.TerminalZipStripper): | |||
| 77 | """ | 77 | """ |
| 78 | 78 | ||
| 79 | def remove_all(self): | 79 | def remove_all(self): |
| 80 | """ Remove harmful metadata, by deleting everything that doesn't end with '.rels' in the | ||
| 81 | 'docProps' folder. """ | ||
| 80 | return super(OpenXmlStripper, self).remove_all( | 82 | return super(OpenXmlStripper, self).remove_all( |
| 81 | beginning_blacklist='docProps/', whitelist='.rels') | 83 | beginning_blacklist='docProps/', whitelist='.rels') |
| 82 | 84 | ||
