diff --git a/sedunlocksrv/index.html b/sedunlocksrv/index.html
index 13f14d8..9b4168c 100644
--- a/sedunlocksrv/index.html
+++ b/sedunlocksrv/index.html
@@ -375,11 +375,11 @@
REBOOTING
"action=" +
action +
"&psw=" +
- document.getElementById("psw").value;
+ encodeURIComponent(document.getElementById("psw").value);
if (action === "change-pwd") {
- data += "&newpsw=" + document.getElementById("newpsw").value;
- data += "&newpsw2=" + document.getElementById("newpsw2").value;
+ data += "&newpsw=" + encodeURIComponent(document.getElementById("newpsw").value);
+ data += "&newpsw2=" + encodeURIComponent(document.getElementById("newpsw2").value);
}
postData(e, data);