From e2db0ca4e700a05c7843d39abbf62e4f7131f3b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20G=C3=BCnter?= Date: Thu, 26 Nov 2020 10:53:44 +0100 Subject: [PATCH] fix: do not use encodeURIComponent for url-parse parameters (fixes #30) --- packages/utils/lib/factory/ajax/commonUrlBuilder.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/utils/lib/factory/ajax/commonUrlBuilder.tsx b/packages/utils/lib/factory/ajax/commonUrlBuilder.tsx index ed58929..3ab2f3e 100755 --- a/packages/utils/lib/factory/ajax/commonUrlBuilder.tsx +++ b/packages/utils/lib/factory/ajax/commonUrlBuilder.tsx @@ -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 } }