mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-12 19:59:03 +08:00
fixed incorrect uri decoding in query string parser
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user