Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added missing implementation of network-path reference
orbiter03438ee97739
diff --git a/source/de/anomic/tools/tarTools.java b/source/de/anomic/tools/tarTools.javaindex ff98fc1f3..642ba3b29 100644--- a/source/de/anomic/tools/tarTools.java+++ b/source/de/anomic/tools/tarTools.java@@ -1,6 +1,5 @@// tarTools.java-// (C) 2007 by Michael Peter Christen; [email protected], Frankfurt a. M., Germany-// contributed by David Wieditz; [email protected]+// (C) 2008 by David Wieditz; [email protected]// first published 21.05.2008 on http://yacy.net//// This is a part of YaCy, a peer-to-peer based web search enginediff --git a/source/de/anomic/yacy/yacyURL.java b/source/de/anomic/yacy/yacyURL.javaindex 79dbd21b5..919fc7e07 100644--- a/source/de/anomic/yacy/yacyURL.java+++ b/source/de/anomic/yacy/yacyURL.java@@ -178,6 +178,11 @@ public class yacyURL implements Serializable {this.host = baseURL.host;this.port = baseURL.port;this.userInfo = baseURL.userInfo;+ if (relPath.startsWith("//")) {+ // a "network-path reference" as defined in rfc2396 denotes+ // a relative path that uses the protocol from the base url+ relPath = baseURL.protocol + ":" + relPath;+ }if (relPath.toLowerCase().startsWith("javascript:")) {this.path = baseURL.path;} else if (