Remove null characters from JSON responses

This commit is contained in:
Francis Lachapelle
2017-12-07 16:07:25 -05:00
parent 38790af774
commit d526efa501
2 changed files with 2 additions and 0 deletions
+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;
}