Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
check filetype before loading (no more mp4 loading)
lotus9f083bb6b25c
diff --git a/.classpath b/.classpathindex 760363f31..0c2a3c594 100644--- a/.classpath+++ b/.classpath@@ -43,7 +43,6 @@<classpathentry kind="lib" path="lib/PDFBox-0.7.3.jar"/><classpathentry kind="lib" path="lib/poi-3.2-FINAL-20081019.jar"/><classpathentry kind="lib" path="lib/poi-scratchpad-3.2-FINAL-20081019.jar"/>- <classpathentry kind="lib" path="lib/tm-extractors-1.0.jar"/><classpathentry kind="lib" path="lib/webcat-0.1-swf.jar"/><classpathentry kind="lib" path="lib/wsdl4j.jar"/><classpathentry kind="output" path="gen"/>diff --git a/htroot/ConfigUpdate_p.html b/htroot/ConfigUpdate_p.htmlindex ba66f77c4..46ab78a1e 100644--- a/htroot/ConfigUpdate_p.html+++ b/htroot/ConfigUpdate_p.html@@ -110,7 +110,7 @@</dl></fieldset>::- You installed YaCy with a package manage. To update YaCy, use the packager manager:<p>+ You installed YaCy with a package manager. To update YaCy, use the package manager:<p>Debian: apt-get update yacy::#(/candeploy)#diff --git a/source/de/anomic/crawler/HTTPLoader.java b/source/de/anomic/crawler/HTTPLoader.javaindex 04dbe3431..4d6484c06 100644--- a/source/de/anomic/crawler/HTTPLoader.java+++ b/source/de/anomic/crawler/HTTPLoader.java@@ -119,6 +119,12 @@ public final class HTTPLoader {final boolean ssl = entry.url().getProtocol().equals("https");if (port < 0) port = (ssl) ? 443 : 80;+ // if not the right file type then reject file+ if (!Parser.supportsExtension(entry.url())) {+ sb.crawlQueues.errorURL.newEntry(entry, sb.peers.mySeed().hash, new Date(), 1, "wrong extension");+ throw new IOException("REJECTED WRONG EXTENSION TYPE " + entry.url().getFileExtension()+ " for URL " + entry.url().toString());+ }+// check if url is in blacklistfinal String hostlow = host.toLowerCase();if (plasmaSwitchboard.urlBlacklist.isListed(Blacklist.BLACKLIST_CRAWLER, hostlow, path)) {@@ -156,11 +162,7 @@ public final class HTTPLoader {// request has been placed and result has been returned. work off response//try {- if (!Parser.supportsExtension(entry.url())) {- // if the response has not the right file type then reject file- sb.crawlQueues.errorURL.newEntry(entry, sb.peers.mySeed().hash, new Date(), 1, "wrong extension");- throw new IOException("REJECTED WRONG EXTENSION TYPE " + entry.url().getFileExtension()+ " for URL " + entry.url().toString());- } else if (!Parser.supportsMime(res.getResponseHeader().mime())) {+ if (!Parser.supportsMime(res.getResponseHeader().mime())) {// if the response has not the right file type then reject filesb.crawlQueues.errorURL.newEntry(entry, sb.peers.mySeed().hash, new Date(), 1, "wrong mime type");throw new IOException("REJECTED WRONG MIME TYPE " + res.getResponseHeader().mime() + " for URL " + entry.url().toString());