Blacklist addBlacklistEntry() - dont add an empty entry

Signed-off-by: Marek Otahal <markotahal@gmail.com>
pull/1/head
Marek Otahal 13 years ago committed by Michael Peter Christen
parent c11ed8a919
commit 8318103f25

@ -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);

Loading…
Cancel
Save