From 8318103f253fa26b69f795fede6827595dd727d3 Mon Sep 17 00:00:00 2001 From: Marek Otahal Date: Thu, 5 Jan 2012 22:23:50 +0100 Subject: [PATCH] Blacklist addBlacklistEntry() - dont add an empty entry Signed-off-by: Marek Otahal --- htroot/Blacklist_p.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.java index 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);