From 027e284ef90c82d0ab642c458425f87770302970 Mon Sep 17 00:00:00 2001 From: reger24 <11603289+reger24@users.noreply.github.com> Date: Sun, 6 Feb 2022 09:43:59 +0100 Subject: [PATCH] Enhance notability of current blacklist by diff color in header in servlet Blacklist_p.html bugfix for https://github.com/yacy/yacy_search_server/commit/18dddb74c95513ff347d5553e0f09eea071e0397 --- htroot/Blacklist_p.html | 4 ++-- source/net/yacy/repository/BlacklistHelper.java | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/htroot/Blacklist_p.html b/htroot/Blacklist_p.html index 3a9275d9b..70ee74f12 100644 --- a/htroot/Blacklist_p.html +++ b/htroot/Blacklist_p.html @@ -66,7 +66,7 @@

#(disabled)#
- Edit list #[currentBlacklist]# + Edit list #[currentBlacklist]# #(edit)# @@ -175,7 +175,7 @@
- Settings for this list #[currentBlacklist]# + Settings for this list #[currentBlacklist]#
diff --git a/source/net/yacy/repository/BlacklistHelper.java b/source/net/yacy/repository/BlacklistHelper.java index aa2e140c2..a86836677 100644 --- a/source/net/yacy/repository/BlacklistHelper.java +++ b/source/net/yacy/repository/BlacklistHelper.java @@ -162,11 +162,10 @@ public final class BlacklistHelper { // convert the loaded Map to the list used in this servlet for (String it : blklist.keySet()) { List thevalue = blklist.get(it); - String valstr = ""; + // String valstr = ""; for (String valitem : thevalue) { - valstr += "/" + valitem; + list.add(it + "/" + valitem); } - list.add(it + valstr); } // sort them final String[] sortedlist = new String[list.size()];