From 427ac2434a06c49ff88de2f8dc64c4099d197bdf Mon Sep 17 00:00:00 2001 From: Ritchie Martori Date: Tue, 29 Jan 2013 08:40:17 -0800 Subject: [PATCH] fixed incorrect uri decoding in query string parser --- lib/util/http.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/http.js b/lib/util/http.js index 105ba02..ae9e69f 100644 --- a/lib/util/http.js +++ b/lib/util/http.js @@ -107,7 +107,7 @@ var parseBody = exports.parseBody = function(req, res, mime, callback) { var parseQuery = exports.parseQuery = function(url) { var q = url.substr(url.indexOf('?') + 1); - if(q) q = decodeURI(q); + if(q) q = decodeURIComponent(q); if(q[0] === '{' && q[q.length - 1] === '}') { return JSON.parse(q);