Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

@shurex
Copy link

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

@jonathanong
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants