Exclude = from percent-encoding in MultiProtocolURL

fix http://mantis.tokeek.de/view.php?id=185 and http://mantis.tokeek.de/view.php?id=280
pull/1/head
reger 11 years ago
parent 024f8e9b33
commit a8d162810c

@ -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);

Loading…
Cancel
Save