From 3c35afe217f2f26447c9f790e43a0bf658e26b94 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Sun, 4 Dec 2016 13:58:24 -0500 Subject: [PATCH] Make sure token is URL safe --- js/pihole/footer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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":