mirror of
https://github.com/pi-hole/web.git
synced 2026-04-23 02:09:58 +01:00
Reverse logic on Query Log to ensure only permitted queries can be added to the blacklist.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -478,10 +478,10 @@ $(document).ready(function() {
|
||||
|
||||
$("#all-queries tbody").on("click", "button", function() {
|
||||
var data = tableApi.row($(this).parents("tr")).data();
|
||||
if (data[4] === "1" || data[4] === "4" || data[4] === "5") {
|
||||
add(data[2], "white");
|
||||
} else {
|
||||
if (data[4] === "2" || data[4] === "3") {
|
||||
add(data[2], "black");
|
||||
} else {
|
||||
add(data[2], "white");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user