mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Make sure token is URL safe
This commit is contained in:
+1
-1
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user