Skip to content

Commit

Permalink
patch for possible problems with normalization of '/' in urls. This a…
Browse files Browse the repository at this point in the history
…pplies 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
  • Loading branch information
orbiter committed Aug 26, 2009
1 parent d8ca6e6 commit 4b92d0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/de/anomic/yacy/yacyURL.java
Expand Up @@ -401,6 +401,8 @@ public static StringBuilder escape(final String s) {
|| 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
Expand Down

0 comments on commit 4b92d0b

Please sign in to comment.