Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
quickfix for http://www.yacy-forum.de/viewtopic.php?p=15336#15336
orbiter423ce9bf59c6
diff --git a/htroot/yacy/transfer.java b/htroot/yacy/transfer.javaindex ca16dfeb4..f1fc9fcb2 100644--- a/htroot/yacy/transfer.java+++ b/htroot/yacy/transfer.java@@ -73,7 +73,7 @@ public final class transfer {//long filesize = Long.parseLong((String) post.get("filesize", "")); // the size of the fileyacySeed otherseed = yacyCore.seedDB.get(otherpeer);- if (otherseed == null) {+ if ((otherseed == null) || (filename.indexOf("..") >= 0)) {// reject unknown peers// this does not appear fair, but anonymous senders are dangerousprop.put("process", 0);@@ -83,7 +83,8 @@ public final class transfer {prop.put("process_protocol", "");prop.put("process_path", "");prop.put("process_maxsize", "0");- sb.getLog().logFine("RankingTransmission: rejected unknown peer '" + otherpeer + "'");+ if (otherseed == null) sb.getLog().logFine("RankingTransmission: rejected unknown peer '" + otherpeer + "'");+ if (filename.indexOf("..") >= 0) sb.getLog().logFine("RankingTransmission: rejected wrong path '" + filename + "'");return prop;}