Encode URL params

This commit is contained in:
Devaev Maxim 2021-02-06 22:01:33 +03:00
parent ccab05f955
commit a172a694e1

View File

@ -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);