Skip to content
This repository has been archived by the owner on Jun 7, 2019. It is now read-only.

Commit

Permalink
Use encodeURIComponent for values in toQueryString
Browse files Browse the repository at this point in the history
  • Loading branch information
willclarktech committed Aug 18, 2017
1 parent 153b290 commit 9359344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function toQueryString(obj) {
const parts = Object.entries(obj)
.reduce((accumulator, [key, value]) => [
...accumulator,
`${encodeURIComponent(key)}=${encodeURI(value)}`,
`${encodeURIComponent(key)}=${encodeURIComponent(value)}`,
], []);

return parts.join('&');
Expand Down

0 comments on commit 9359344

Please sign in to comment.