If I have a route like page('/user?email=senica%2B3%40gmail.com') which is encodeURIComponent(senica+3@gmail.com), then the first line above will show the query string as email=senica+3@gmail.com but after it goes into qs.parse, it comes out as senica 3@gmail.com. Notice the space where the plus sign is replaced.
In the query.js file https://github.com/visionmedia/page.js/blob/master/examples/query-string/query.js
On line 110 (currently) you are replacing the '+' sign
But this breaks values with a plus sign in it.
For example:
If I have a route like
page('/user?email=senica%2B3%40gmail.com')
which isencodeURIComponent(senica+3@gmail.com)
, then the first line above will show the query string asemail=senica+3@gmail.com
but after it goes into qs.parse, it comes out assenica 3@gmail.com
. Notice the space where the plus sign is replaced.Is there a reason for this happening?