Skip to content

Commit

Permalink
Escape characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Jip-Hop committed Apr 8, 2022
1 parent 1d10632 commit 510a2b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sedunlocksrv/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ <h3>REBOOTING</h3>
"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);
Expand Down

0 comments on commit 510a2b4

Please sign in to comment.