Fixed incorrect ordering of sanitisers

`json_encode` needs to call the result of `htmlspecialchars`, not visa versa!
This commit is contained in:
Rory M committed 2016-04-22 13:12:10 +01:00
1 parent 87ddd4cbc7
commit 66e0c0f66e
1 file changed
+1 -1
+1 -1
View File
@@ -48,5 +48,5 @@
}
echo htmlspecialchars(json_encode($data));
echo json_encode(htmlspecialchars($data));
?>