Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

Commit

Permalink
Fixes #117 - decode URI component query param values
Browse files Browse the repository at this point in the history
  • Loading branch information
wyuenho committed Nov 1, 2013
1 parent 3551b23 commit 8165451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/backbone-pageable.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
for (var i = 0, l = kvps.length; i < l; i++) {
var param = kvps[i];
kvp = param.split('='), k = kvp[0], v = kvp[1] || true;
k = decode(k), ls = params[k];
k = decode(k), v = decode(v), ls = params[k];
if (_isArray(ls)) ls.push(v);
else if (ls) params[k] = [ls, v];
else params[k] = v;
Expand Down

0 comments on commit 8165451

Please sign in to comment.