Skip to content

Commit

Permalink
RFC 3986
Browse files Browse the repository at this point in the history
To be more stringent in adhering to RFC 3986 (which reserves !, ', (, ), and *), even though these characters have no formalized URI delimiting uses.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/encodeURIComponent
  • Loading branch information
jamie-beck committed Mar 18, 2015
1 parent 7ba5e0f commit 066387d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internals.stringify = function (obj, prefix, generateArrayPrefix) {
typeof obj === 'number' ||
typeof obj === 'boolean') {

return [encodeURIComponent(prefix) + '=' + encodeURIComponent(obj)];
return [Utils.fixedEncodeURIComponent(prefix) + '=' + Utils.fixedEncodeURIComponent(obj)];
}

var values = [];
Expand Down

0 comments on commit 066387d

Please sign in to comment.