Only touch text/plain and text/html parts during Outlook sanitization

This commit is contained in:
Ludovic Marcotte
2014-03-21 09:02:39 -04:00
parent 64787555ff
commit 19b6704955
+2 -1
View File
@@ -285,7 +285,8 @@ struct GlobalObjectId {
performed: b];
}
else if ([body isKindOfClass: [NSData class]] &&
[[[thePart contentType] type] isEqualToString: @"text"])
[[[thePart contentType] type] isEqualToString: @"text"] &&
([[[thePart contentType] subType] isEqualToString: @"plain"] || [[[thePart contentType] subType] isEqualToString: @"plain"]))
{
// We make sure everything is encoded in UTF-8
NSString *charset, *s;