encode $resource query params using encodeURIComponent

This commit is contained in:
Igor Minar
2011-03-18 10:31:28 -07:00
parent 885c3ad5dd
commit e1d122a4b7
2 changed files with 8 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ Route.prototype = {
var query = [];
forEachSorted(params, function(value, key){
if (!self.urlParams[key]) {
query.push(encodeUriSegment(key) + '=' + encodeUriSegment(value));
query.push(encodeURIComponent(key) + '=' + encodeURIComponent(value));
}
});
url = url.replace(/\/*$/, '');