Yes, browsers escape request parameters correctly when submitting HTTP requests, and you should do the same :-)
When you say, "from my javascript code" it's clear if you're talking about client-side or server-side JavaScript... how do you "do a request"? If you're talking about client-side code, are you using an Ajax library? If server-side, which Node module / API are you using to perform the request?
--
Laurie Harper
http://laurie.holoweb.net/
No subsequent changes on the backend to your req.query values are necessary.
That's my fix. If anyone has a better explanation as to why, I'm curious.
Daniel Shaw
@dshaw
> --
> You received this message because you are subscribed to the Google Groups "Express" group.
> To post to this group, send email to expre...@googlegroups.com.
> To unsubscribe from this group, send email to express-js+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
>
>
L.
> --
> You received this message because you are subscribed to the Google Groups "Express" group.
> To post to this group, send email to expre...@googlegroups.com.
> To unsubscribe from this group, send email to express-js+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/express-js?hl=en.
>
--
Laurie Harper
http://laurie.holoweb.net/
--
You received this message because you are subscribed to the Google Groups "Express" group.
To post to this group, send email to expre...@googlegroups.com.
To unsubscribe from this group, send email to express-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/express-js?hl=en.