Skip to content
Browse files

Url encoded params in url path

  • Loading branch information...
1 parent 325da28 commit b61802add59b40de78b43b7ab207330d5dd57b18 @stou committed Dec 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.js
View
2 app.js
@@ -309,7 +309,7 @@ function processRequest(req, res, next) {
// If the param is actually a part of the URL, put it in the URL and remove the param
if (!!regx.test(methodURL)) {
- methodURL = methodURL.replace(regx, params[param]);
+ methodURL = methodURL.replace(regx, encodeURIComponent(params[param]));
delete params[param]
}
} else {

0 comments on commit b61802a

Please sign in to comment.
Something went wrong with that request. Please try again.