Fix rendering of forwarded HTML message with img

Fixes #3981 (cont'd)
This commit is contained in:
Francis Lachapelle
2017-01-13 12:23:38 -05:00
parent 9d7d2575d3
commit 4a21a02f98
3 changed files with 9 additions and 2 deletions

View File

@@ -609,7 +609,8 @@ static NSData* _sanitizeContent(NSData *theData)
value = [_attributes valueAtIndex: count];
if ([value hasPrefix: @"cid:"])
{
cid = [value substringFromIndex: 4];
cid = [NSString stringWithFormat: @"<%@>",
[value substringFromIndex: 4]];
value = [attachmentIds objectForKey: cid];
skipAttribute = (value == nil);
}