diff --git a/js/pihole/footer.js b/js/pihole/footer.js index a2d2e90b..b8a7dc24 100644 --- a/js/pihole/footer.js +++ b/js/pihole/footer.js @@ -14,7 +14,7 @@ $("#flip-status").on("click", (e) => { const btnStatus = $("#flip-status"); const status = $("#status"); const text = btnStatus.text().trim(); - const token = $("#token").html(); + const token = encodeURIComponent($("#token").html()); switch(text) { case "Enable":