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:
commit
746729dedf
|
@ -30,8 +30,8 @@ export function breakQueryString(qs) {
|
||||||
const params = qs.split("&")
|
const params = qs.split("&")
|
||||||
let paramObj = {}
|
let paramObj = {}
|
||||||
for (let param of params) {
|
for (let param of params) {
|
||||||
const [key, value] = param.split("=")
|
const split = param.split("=")
|
||||||
paramObj[key] = value
|
paramObj[split[0]] = split.slice(1).join("=")
|
||||||
}
|
}
|
||||||
return paramObj
|
return paramObj
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue