Skip to content

Commit

Permalink
*) Correcting Problems with lURLEntries containing null URLs.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1104 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
theli committed Nov 17, 2005
1 parent a12759c commit 89fab9f
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions htroot/yacy/transferURL.java
Expand Up @@ -94,22 +94,22 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
yacyCore.log.logFine("transferURL: got null URL-string from peer " + otherPeerName);
} else {
lEntry = sb.urlPool.loadedURL.newEntry(urls, true);
if (
(lEntry != null) &&
(lEntry.url() != null) &&
(blockBlacklist) &&
(plasmaSwitchboard.urlBlacklist.isListed(lEntry.url().getHost().toLowerCase(), lEntry.url().getPath()))
) {
yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + otherPeerName);
lEntry = null;
}
if ((lEntry != null)&&(lEntry.url() != null)) {
sb.urlPool.loadedURL.addEntry(lEntry, iam, iam, 3);
yacyCore.log.logFine("transferURL: received URL '" + lEntry.url() + "' from peer " + otherPeerName);
received++;
if ((lEntry != null) && (lEntry.url() != null)) {
if (
(blockBlacklist) &&
(plasmaSwitchboard.urlBlacklist.isListed(lEntry.url().getHost().toLowerCase(), lEntry.url().getPath()))
){
yacyCore.log.logFine("transferURL: blocked blacklisted URL '" + lEntry.url() + "' from peer " + otherPeerName);
lEntry = null;
} else {
sb.urlPool.loadedURL.addEntry(lEntry, iam, iam, 3);
yacyCore.log.logFine("transferURL: received URL '" + lEntry.url() + "' from peer " + otherPeerName);
received++;
}
} else {
yacyCore.log.logWarning("transferURL: received invalid URL from peer " + otherPeerName +
"\n\tURL Property: " + urls);
// TODO: should we send back an error message???
}
}
}
Expand Down

0 comments on commit 89fab9f

Please sign in to comment.