diff options
| -rw-r--r-- | mat/images.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mat/images.py b/mat/images.py index d090015..eea9d48 100644 --- a/mat/images.py +++ b/mat/images.py | |||
| @@ -13,9 +13,10 @@ class JpegStripper(parser.GenericParser): | |||
| 13 | ''' | 13 | ''' |
| 14 | return True if the field is compromizing | 14 | return True if the field is compromizing |
| 15 | ''' | 15 | ''' |
| 16 | if field.name.startswith('comment'): | 16 | name = field.name |
| 17 | if name.startswith('comment'): | ||
| 17 | return True | 18 | return True |
| 18 | elif field.name in ("photoshop", "exif", "adobe"): | 19 | elif name in ("photoshop", "exif", "adobe"): |
| 19 | return True | 20 | return True |
| 20 | else: | 21 | else: |
| 21 | return False | 22 | return False |
| @@ -29,9 +30,10 @@ class PngStripper(parser.GenericParser): | |||
| 29 | ''' | 30 | ''' |
| 30 | return True if the field is compromizing | 31 | return True if the field is compromizing |
| 31 | ''' | 32 | ''' |
| 32 | if field.name.startswith("text["): | 33 | name = field.name |
| 34 | if name.startswith("text[") or name.startswith('utf8_text'): | ||
| 33 | return True | 35 | return True |
| 34 | elif field.name is "time": | 36 | elif name == "time": |
| 35 | return True | 37 | return True |
| 36 | else: | 38 | else: |
| 37 | return False | 39 | return False |
