From 74468808f374ff362c3c9270cb07f0b1f8dae3ad Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 28 Feb 2022 16:23:53 +0000 Subject: [PATCH] Improve parsing of REST query strings to support equals symbol in values --- packages/builder/src/helpers/data/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/helpers/data/utils.js b/packages/builder/src/helpers/data/utils.js index 0e99109189..f6822890f3 100644 --- a/packages/builder/src/helpers/data/utils.js +++ b/packages/builder/src/helpers/data/utils.js @@ -30,8 +30,8 @@ export function breakQueryString(qs) { const params = qs.split("&") let paramObj = {} for (let param of params) { - const [key, value] = param.split("=") - paramObj[key] = value + const split = param.split("=") + paramObj[split[0]] = split.slice(1).join("=") } return paramObj }