Remove null characters from JSON responses

pull/239/head
Francis Lachapelle 2017-12-07 16:07:25 -05:00
parent 38790af774
commit d526efa501
2 changed files with 2 additions and 0 deletions

1
NEWS
View File

@ -39,6 +39,7 @@ Bug fixes
- [web] restore messages selection after automatic refresh (#4330)
- [web] fixed path of destination mailbox in Sieve filter editor
- [web] force copy of dragged contacts from global address books
- [web] removed null characters from JSON responses
- [eas] hebrew folders encoding problem using EAS (#4240)
- [eas] avoid sync requests for shared folders every second (#4275)

View File

@ -264,6 +264,7 @@ static int cssEscapingCount;
[representation replaceString: @"\n" withString: @"\\n"];
[representation replaceString: @"\r" withString: @"\\r"];
[representation replaceString: @"\t" withString: @"\\t"];
[representation replaceString: @"\0" withString: @""];
return representation;
}