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

pull/246/head
Ludovic Marcotte 2018-11-29 14:05:12 -05:00
parent be4ace2af7
commit adf2d395e3
2 changed files with 2 additions and 1 deletions

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];
}

1
NEWS
View File

@ -13,6 +13,7 @@ Bug fixes
- [web] fixed folder export when XSRF validation is enabled (#4502)
- [web] don't encode filename extension when exporting folders
- [core] don't always fetch the sorting columns
- [eas] strip '<>' from bodyId and when forwarding mails
4.0.4 (2018-10-23)
------------------