mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-18 04:55:56 +00:00
Fix rendering of forwarded HTML message with img
Fixes #3981 (partially)
This commit is contained in:
@@ -609,8 +609,7 @@ static NSData* _sanitizeContent(NSData *theData)
|
||||
value = [_attributes valueAtIndex: count];
|
||||
if ([value hasPrefix: @"cid:"])
|
||||
{
|
||||
cid = [NSString stringWithFormat: @"<%@>",
|
||||
[value substringFromIndex: 4]];
|
||||
cid = [value substringFromIndex: 4];
|
||||
value = [attachmentIds objectForKey: cid];
|
||||
skipAttribute = (value == nil);
|
||||
}
|
||||
@@ -920,7 +919,7 @@ static NSData* _sanitizeContent(NSData *theData)
|
||||
createXMLReaderForMimeType: @"text/html"];
|
||||
|
||||
handler = [_UIxHTMLMailContentHandler new];
|
||||
[handler setAttachmentIds: [mail fetchFileAttachmentIds]];
|
||||
[handler setAttachmentIds: attachmentIds];
|
||||
|
||||
// We check if we got an unsupported charset. If so
|
||||
// we convert everything to UTF-16{LE,BE} so it passes
|
||||
@@ -1047,7 +1046,7 @@ static NSData* _sanitizeContent(NSData *theData)
|
||||
encoding = @"us-ascii";
|
||||
|
||||
handler = [_UIxHTMLMailContentHandler new];
|
||||
[handler setAttachmentIds: [mail fetchFileAttachmentIds]];
|
||||
[handler setAttachmentIds: attachmentIds];
|
||||
|
||||
// We check if we got an unsupported charset. If so
|
||||
// we convert everything to UTF-16{LE,BE} so it passes
|
||||
|
||||
Reference in New Issue
Block a user