Skip to content

Commit 2a4f417

Browse files
committed
fixed urldecoding problem with spaces
1 parent e2333b8 commit 2a4f417

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ function serveTest(query, response)
142142
{
143143
if (kv[0] in params)
144144
{
145-
params[kv[0]].push(querystring.unescape(kv[1]));
145+
params[kv[0]].push(querystring.unescape(kv[1].replace(/\+/g, " ")));
146146
}
147147
else
148148
{
149-
params[kv[0]] = [ querystring.unescape(kv[1]) ];
149+
params[kv[0]] = [ querystring.unescape(kv[1].replace(/\+/g, " ")) ];
150150
}
151151
}
152152
else

0 commit comments

Comments
 (0)