middleware json doesn't decode special characters in request as & &quote; etc. #892

Closed
shurex opened this Issue Sep 12, 2013 · 1 comment

Comments

Projects
None yet
2 participants

shurex commented Sep 12, 2013

using connect as midleware with restify,
so should use validator module to sanitise each parameter came in with json request, like this:
sanitize(req.body.value).entityDecode();

to have

here"quote and &

not

here;quote;quote and &

please advice if "bodyparser" could handle this or not

Contributor

jonathanong commented Sep 12, 2013

yes, you should be validating it yourself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment