Changeset 528ef4d


Ignore:
Timestamp:
Mar 10, 2012 9:50:45 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7bd83f8
Parents:
5ab17da7
Message:
  • HTTP Proxy: Fix generation of jump links (ticket #616),

broken by refactoring in -1

File:
1 edited

Legend:

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

    r5ab17da7 r528ef4d  
    11431143            out.write(errMessage);
    11441144            if (targetRequest != null) {
    1145                 String uri = targetRequest;
     1145                String uri = targetRequest.replace("&", "&amp;");
    11461146                out.write("<a href=\"".getBytes());
    11471147                out.write(uri.getBytes());
     
    11571157                    out.write("<br><br>".getBytes());
    11581158                    out.write(_("Click a link below to look for an address helper by using a \"jump\" service:").getBytes("UTF-8"));
    1159                     out.write("<br>".getBytes());
    1160 
     1159                    out.write("<br>\n".getBytes());
     1160
     1161                    if (uri.startsWith("http://"))
     1162                        uri = uri.substring(7);
    11611163                    StringTokenizer tok = new StringTokenizer(jumpServers, ", ");
    11621164                    while (tok.hasMoreTokens()) {
     
    11801182                        out.write(jurl.getBytes());
    11811183                        out.write(uri.getBytes());
    1182                         out.write("</a>".getBytes());
     1184                        out.write("</a>\n".getBytes());
    11831185                    }
    11841186                }
Note: See TracChangeset for help on using the changeset viewer.