From 0aea6a6c3ffdc93ca6414e0b84b99ff31ce6f00d Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 28 Oct 2024 15:37:18 -0700 Subject: [PATCH] Fix: pyload widget - encode proxy params (#4210) --- src/widgets/pyload/proxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/pyload/proxy.js b/src/widgets/pyload/proxy.js index 9cdd52310..d9469d1cb 100644 --- a/src/widgets/pyload/proxy.js +++ b/src/widgets/pyload/proxy.js @@ -15,7 +15,7 @@ async function fetchFromPyloadAPI(url, sessionId, params, service) { const options = { body: params ? Object.keys(params) - .map((prop) => `${prop}=${params[prop]}`) + .map((prop) => `${prop}=${encodeURIComponent(params[prop])}`) .join("&") : `session=${sessionId}`, method: "POST",