mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Regex IDs start from 1 by default. 0 means the query has been imported from the database. It makes no sense to show a link when we don't know which regex was responsible for blocking (this is not stored in the database).
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -199,7 +199,7 @@ $(document).ready(function() {
|
||||
colorClass = "text-red";
|
||||
fieldtext = "Blocked <br class='hidden-lg'>(regex blacklist)";
|
||||
|
||||
if (data.length > 9 && data[9] > -1) {
|
||||
if (data.length > 9 && data[9] > 0) {
|
||||
fieldtext =
|
||||
"<a href='groups-domains.php?domainid=" +
|
||||
data[9] +
|
||||
@@ -251,7 +251,7 @@ $(document).ready(function() {
|
||||
colorClass = "text-red";
|
||||
fieldtext = "Blocked <br class='hidden-lg'>(regex blacklist, CNAME)";
|
||||
|
||||
if (data.length > 9 && data[9] > -1) {
|
||||
if (data.length > 9 && data[9] > 0) {
|
||||
fieldtext =
|
||||
"<a href='groups-domains.php?domainid=" +
|
||||
data[9] +
|
||||
|
||||
Reference in New Issue
Block a user