forked from I2P_Developers/i2p.i2p
i2ptunnel: Escape {} in URLs (ticket #2130)
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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
|
||||
|
@@ -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 = "";
|
||||
|
Reference in New Issue
Block a user