(fix) strip '<>' from bodyId and when forwarding mails

This commit is contained in:
Ludovic Marcotte committed 2018-11-29 14:05:12 -05:00
1 parent be4ace2af7
commit adf2d395e3
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -1260,7 +1260,7 @@ struct GlobalObjectId {
{
if ([[value objectForKey: @"bodyId"] length])
{
[s appendFormat: @"<ContentId>%@</ContentId>", [[value objectForKey: @"bodyId"] activeSyncRepresentationInContext: context]];
[s appendFormat: @"<ContentId>%@</ContentId>", [[[value objectForKey: @"bodyId"] stringByTrimmingCharactersInSet: [NSCharacterSet characterSetWithCharactersInString: @"<>"]] activeSyncRepresentationInContext: context]];
[s appendFormat: @"<IsInline>%d</IsInline>", 1];
}