Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) bugfix for ArrayIndexOutOfBoundsException in robots-parser (thanks to low012)
thelib1680ab71f21
diff --git a/source/de/anomic/data/robotsParser.java b/source/de/anomic/data/robotsParser.javaindex dc46d510a..d51a67108 100644--- a/source/de/anomic/data/robotsParser.java+++ b/source/de/anomic/data/robotsParser.java@@ -110,7 +110,7 @@ public final class robotsParser{}public static Object[] parse(byte[] robotsTxt) throws IOException {- if ((robotsTxt == null)||(robotsTxt.length == 0)) return new Object[]{new ArrayList(0),null};+ if ((robotsTxt == null)||(robotsTxt.length == 0)) return new Object[]{new ArrayList(0),null,null};ByteArrayInputStream bin = new ByteArrayInputStream(robotsTxt);BufferedReader reader = new BufferedReader(new InputStreamReader(bin));return parse(reader);