Skip to content

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

Exclude = from percent-encoding in MultiProtocolURL fix http://mantis.tokeek.de/view.php?id=185 and http://mantis.tokeek.de/view.php?id=280

regera8d162810c72
diff --git a/source/net/yacy/cora/document/id/MultiProtocolURL.java b/source/net/yacy/cora/document/id/MultiProtocolURL.java
index 7435bb95c..b098395fa 100644
--- a/source/net/yacy/cora/document/id/MultiProtocolURL.java
+++ b/source/net/yacy/cora/document/id/MultiProtocolURL.java
@@ -495,7 +495,7 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
* <li>The ASCII characters 'a' through 'z', 'A' through 'Z',
* and '0' through '9' remain the same.
*
- * <li>The unreserved characters & : - _ . ! ~ * ' ( ) ; , remain the same.
+ * <li>The unreserved characters & : - _ . ! ~ * ' ( ) ; , = remain the same.
* see RFC 1738 2.2 and RFC 3986 2.2
*
* <li>All other ASCII characters are converted into the
@@ -531,7 +531,7 @@ public class MultiProtocolURL implements Serializable, Comparable<MultiProtocolU
|| ch == '~' || ch == '*'
|| ch == '\'' || ch == '('
|| ch == ')' || ch == ';'
- || ch == ',') { // RFC 1738 2.2 special char (may be used unencoded)
+ || ch == ',' || ch == '=') { // RFC 1738 2.2 special char (may be used unencoded)
sbuf.append((char)ch);
} else if (ch == '/') { // reserved, but may appear in post part where it should not be replaced
sbuf.append((char)ch);