mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-06 20:37:14 +00:00
Remove null characters from JSON responses
This commit is contained in:
1 parent
38790af774
commit
d526efa501
2 files changed
+2
No files matched your search
@@ -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