Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Bugfix: remove blacklisted URL from loadedURL, when received via DHT transfer see: http://www.yacy-forum.de/viewtopic.php?p=18976#18976

hermens289da326e59a
diff --git a/htroot/yacy/transferURL.java b/htroot/yacy/transferURL.java
index 11cf19e07..5609dfe6c 100644
--- a/htroot/yacy/transferURL.java
+++ b/htroot/yacy/transferURL.java
@@ -97,6 +97,7 @@ public final class transferURL {
if ((lEntry != null) && (lEntry.url() != null)) {
if ((blockBlacklist) &&
(plasmaSwitchboard.urlBlacklist.isListed( lEntry.url().getHost().toLowerCase(), lEntry.url().getPath()))) {
+ sb.urlPool.loadedURL.remove(lEntry.hash());
int deleted = sb.wordIndex.tryRemoveURLs(lEntry.hash());
yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + otherPeerName + "; deleted " + deleted + " URL entries from RWIs");
lEntry = null;
@@ -132,4 +133,4 @@ public final class transferURL {
prop.put("result", result);
return prop;
}
-}
\ No newline at end of file
+}