diff --git a/source/de/anomic/tools/tarTools.java b/source/de/anomic/tools/tarTools.java index 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; mc@yacy.net, Frankfurt a. M., Germany -// contributed by David Wieditz; d.wieditz@gmx.de +// (C) 2008 by David Wieditz; d.wieditz@gmx.de // first published 21.05.2008 on http://yacy.net // // This is a part of YaCy, a peer-to-peer based web search engine diff --git a/source/de/anomic/yacy/yacyURL.java b/source/de/anomic/yacy/yacyURL.java index 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 (