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

pull/30/head
Ludovic Marcotte 2014-03-21 09:02:39 -04:00
parent 64787555ff
commit 19b6704955
1 changed files with 2 additions and 1 deletions

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;