i2ptunnel: Escape {} in URLs (ticket #2130)

This commit is contained in:
zzz
2019-03-22 15:41:16 +00:00
parent 05845481d1
commit f17776ec54
3 changed files with 7 additions and 1 deletions

View File

@@ -502,9 +502,12 @@ public class I2PTunnelHTTPClient extends I2PTunnelHTTPClientBase implements Runn
if (idx > 0) {
String schemeHostPort = request.substring(0, idx);
String rest = request.substring(idx);
// not escaped by all browsers, may be specific to query, see ticket #2130
rest = rest.replace("[", "%5B");
rest = rest.replace("]", "%5D");
rest = rest.replace("|", "%7C");
rest = rest.replace("{", "%7B");
rest = rest.replace("}", "%7D");
String testRequest = schemeHostPort + rest;
if (!testRequest.equals(request)) {
try {

View File

@@ -1,3 +1,6 @@
2019-03-22 zzz
* i2ptunnel: Escape {} in URLs (ticket #2130)
* 2019-03-21 0.9.39 released
2019-03-16 zzz

View File

@@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 0;
public final static long BUILD = 1;
/** for example "-test" */
public final static String EXTRA = "";