Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

patch for possible problems with normalization of '/' in urls. This applies in rare cases when '/' appear in post-properties

orbiter4b92d0b9b79a
diff --git a/source/de/anomic/yacy/yacyURL.java b/source/de/anomic/yacy/yacyURL.java
index 6dd90f918..fa8421326 100644
--- a/source/de/anomic/yacy/yacyURL.java
+++ b/source/de/anomic/yacy/yacyURL.java
@@ -401,6 +401,8 @@ public class yacyURL implements Serializable {
|| ch == '\'' || ch == '('
|| ch == ')' || ch == ';') {
sbuf.append((char)ch);
+ } else if (ch == '/') { // reserved, but may appear in post part where it should not be replaced
+ sbuf.append((char)ch);
} else if (ch <= 0x007f) { // other ASCII
sbuf.append(hex[ch]);
} else if (ch <= 0x07FF) { // non-ASCII <= 0x7FF