Remove null characters from JSON responses

This commit is contained in:
Francis Lachapelle committed 2017-12-07 16:07:25 -05:00
1 parent 38790af774
commit d526efa501
2 files changed
+2

No files matched your search

+1
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;
}