Fix: pyload widget - encode proxy params (#4210)

pull/4217/head
shamoon 4 weeks ago committed by GitHub
parent 261c907f52
commit 0aea6a6c3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -15,7 +15,7 @@ async function fetchFromPyloadAPI(url, sessionId, params, service) {
const options = { const options = {
body: params body: params
? Object.keys(params) ? Object.keys(params)
.map((prop) => `${prop}=${params[prop]}`) .map((prop) => `${prop}=${encodeURIComponent(params[prop])}`)
.join("&") .join("&")
: `session=${sessionId}`, : `session=${sessionId}`,
method: "POST", method: "POST",

Loading…
Cancel
Save