Skip to content

Commit

Permalink
fix: do not use encodeURIComponent for url-parse parameters (fixes #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
matzeeable committed Nov 26, 2020
1 parent 7b2c871 commit e2db0ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/lib/factory/ajax/commonUrlBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function commonUrlBuilder({
// Find undeclared body params (which are not bind above) and add it to GET query
for (const checkParam of Object.keys(params)) {
if (foundParams.indexOf(checkParam) === -1) {
getParams[checkParam] = encodeURIComponent((params as any)[checkParam]);
getParams[checkParam] = (params as any)[checkParam]; // We do not need `encodeURIComponent` as it is supported by `url-parse` already
}
}

Expand Down

0 comments on commit e2db0ca

Please sign in to comment.