mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-06 00:45:09 +00:00
Remove null characters from JSON responses
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user