Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- fix for String index out of range during URL parsing
karlchenofhella619ba3f491d
diff --git a/source/de/anomic/net/URL.java b/source/de/anomic/net/URL.javaindex a1692fae9..e66778418 100644--- a/source/de/anomic/net/URL.java+++ b/source/de/anomic/net/URL.java@@ -49,7 +49,7 @@ public class URL {int p = url.indexOf(':');if (p < 0) throw new MalformedURLException("protocol is not given in '" + url + "'");this.protocol = url.substring(0, p).toLowerCase().trim();-+ if (url.length() < p + 4) throw new MalformedURLException("URL not parseable: '" + url + "'");if (url.substring(p + 1, p + 3).equals("//")) {// identify host, userInfo and file for http and ftp protocolint q = url.indexOf('/', p + 3);