From 4b92d0b9b79a0b18c174937149502a522af1154a Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 26 Aug 2009 15:10:03 +0000 Subject: [PATCH] patch for possible problems with normalization of '/' in urls. This applies in rare cases when '/' appear in post-properties git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6264 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyURL.java | 2 ++ 1 file changed, 2 insertions(+) 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