diff options
author | Devaev Maxim <[email protected]> | 2021-02-06 22:01:33 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-02-06 22:01:33 +0300 |
commit | a172a694e13f2247d1f27dea0a056e6ae82df5c9 (patch) | |
tree | 6e3c45f5bf190581bd20628acb5bbce5222a9963 | |
parent | ccab05f955c218cb8e49a5008b7a729c83f77394 (diff) |
Encode URL params
-rw-r--r-- | web/share/js/kvm/msd.js | 2 |
1 files changed, 1 insertions, 1 deletions
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:<br>", http.responseText); |