From a172a694e13f2247d1f27dea0a056e6ae82df5c9 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 6 Feb 2021 22:01:33 +0300 Subject: Encode URL params --- web/share/js/kvm/msd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/share/js/kvm/msd.js') diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index c67d819f..a52b4f65 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -89,7 +89,7 @@ export function Msd() { }; var __sendParam = function(name, value) { - let http = tools.makeRequest("POST", `/api/msd/set_params?${name}=${value}`, function() { + let http = tools.makeRequest("POST", `/api/msd/set_params?${name}=${encodeURIComponent(value)}`, function() { if (http.readyState === 4) { if (http.status !== 200) { wm.error("Can't configure MSD:
", http.responseText); -- cgit v1.2.3