Fixed incorrect ordering of sanitisers

`json_encode` needs to call the result of `htmlspecialchars`, not visa versa!
This commit is contained in:
Rory M
2016-04-22 13:12:10 +01:00
parent 87ddd4cbc7
commit 66e0c0f66e

View File

@@ -48,5 +48,5 @@
}
echo htmlspecialchars(json_encode($data));
echo json_encode(htmlspecialchars($data));
?>