mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Decode URI componentes in GET dictionary
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -81,7 +81,8 @@ const htmlLegendPlugin = {
|
||||
if (chart.canvas.id === "queryTypePieChart") {
|
||||
window.location.href = "queries.lp?type=" + item.text;
|
||||
} else if (chart.canvas.id === "forwardDestinationPieChart") {
|
||||
window.location.href = "queries.lp?forwarddest=" + encodeURIComponent(item.text);
|
||||
// Encode the forward destination as it may contain an "#" character
|
||||
window.location.href = "queries.lp?upstream=" + encodeURIComponent(item.text);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user