Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
Blacklist addBlacklistEntry() - dont add an empty entry
Marek Otahal8318103f253f
diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.javaindex 361d1f2bc..b466fcc5e 100644--- a/htroot/Blacklist_p.java+++ b/htroot/Blacklist_p.java@@ -624,7 +624,11 @@ public class Blacklist_p {String newEntry,final String[] supportedBlacklistTypes) {- // TODO: ignore empty entries+ // ignore empty entries+ if(newEntry == null || newEntry.isEmpty()) {+ Log.logWarning("Blacklist", "skipped adding an empty entry");+ return;+ }if (newEntry.startsWith("http://") ){newEntry = newEntry.substring(7);