mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(eas): avoid generating broken XML ouput (fixes #4927)
This commit is contained in:
@@ -2592,7 +2592,6 @@ FIXME
|
||||
//[output appendFormat: @"<Status>%d</Status>", 14];
|
||||
}
|
||||
|
||||
[output appendString: @"<Collections>"];
|
||||
s = nil;
|
||||
|
||||
// We enter our loop detection change
|
||||
@@ -2695,6 +2694,8 @@ FIXME
|
||||
//
|
||||
if (changeDetected || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"2.5"] || [[[context request] headerForKey: @"MS-ASProtocolVersion"] isEqualToString: @"12.0"])
|
||||
{
|
||||
[output appendString: @"<Collections>"];
|
||||
|
||||
// We always return the last generated response.
|
||||
// If we only return <Sync><Collections/></Sync>,
|
||||
// iOS powered devices will simply crash.
|
||||
|
||||
Reference in New Issue
Block a user