Merge pull request #4737 from Budibase/fix/rest-query-params-equals

Improve parsing of REST query strings to support equals symbol in values
This commit is contained in:
Andrew Kingston 2022-03-01 09:41:51 +00:00 committed by GitHub
commit 028738af26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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
}