Skip to content

Commit

Permalink
Merge pull request #271 from tfux/4988
Browse files Browse the repository at this point in the history
fix(eas): properly encode DisplayTo (fixes #4995)
  • Loading branch information
extrafu committed Mar 30, 2020
2 parents 45eeb5f + 18ffd1a commit 841d689
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ActiveSync/SOGoMailObject+ActiveSync.m
Expand Up @@ -894,7 +894,9 @@ - (NSString *) activeSyncRepresentationInContext: (WOContext *) _context
{
[s appendFormat: @"<To xmlns=\"Email:\">%@</To>", [value activeSyncRepresentationInContext: context]];
// DisplayTo - If there are multiple display names, they are separated by semi-colons.
[s appendFormat: @"<DisplayTo xmlns=\"Email:\">%@</DisplayTo>", [self _personalNameFrom: [[self envelope] to]]];
value = [self _personalNameFrom: [[self envelope] to]];
if (value)
[s appendFormat: @"<DisplayTo xmlns=\"Email:\">%@</DisplayTo>", [value activeSyncRepresentationInContext: context]];
}

// From
Expand Down

0 comments on commit 841d689

Please sign in to comment.