Changeset 85a61e6


Ignore:
Timestamp:
Feb 17, 2012 11:05:51 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ab1ee37
Parents:
8e275e9
Message:

escape fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r8e275e9 r85a61e6  
    16321632    /** @since 0.8.13 */
    16331633    private static String urlEncode(String s) {
    1634         return s.replace("&", "&amp;").replace(" ", "%20").replace(":", "%3A").replace("/", "%2F").replace(";", "%3B");
     1634        return s.replace(";", "%3B").replace("&", "&amp;").replace(" ", "%20");
    16351635    }
    16361636
     
    20812081                //    buf.append("<input type=\"hidden\" name=\"p\" value=\"").append(peerParam).append("\" >\n");
    20822082                buf.append(_("Torrent was not retrieved from {0}", urlify(_url)));
    2083                 String link = urlEncode(_url);
    20842083             /**** FIXME ticket #575
     2084                String link = urlEncode(_url).replace(":", "%3A").replace("/", "%2F");
    20852085                buf.append(" - [<a href=\"/i2psnark/?newURL=").append(link).append("#add\" >");
    20862086                buf.append(_("Retry"));
Note: See TracChangeset for help on using the changeset viewer.