Changeset f17776e for apps


Ignore:
Timestamp:
Mar 22, 2019 3:41:16 PM (15 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
00d4525
Parents:
0584548
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelHTTPClient.java

    r0584548 rf17776e  
    503503                                String schemeHostPort = request.substring(0, idx);
    504504                                String rest = request.substring(idx);
     505                                // not escaped by all browsers, may be specific to query, see ticket #2130
    505506                                rest = rest.replace("[", "%5B");
    506507                                rest = rest.replace("]", "%5D");
    507508                                rest = rest.replace("|", "%7C");
     509                                rest = rest.replace("{", "%7B");
     510                                rest = rest.replace("}", "%7D");
    508511                                String testRequest = schemeHostPort + rest;
    509512                                if (!testRequest.equals(request)) {
Note: See TracChangeset for help on using the changeset viewer.