Changeset f5bf4ec


Ignore:
Timestamp:
Nov 7, 2015 12:06:56 PM (5 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
077c4a0
Parents:
c901010d
Message:

escape referer

Files:
2 edited

Legend:

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

    rc901010d rf5bf4ec  
    1515import net.i2p.client.naming.NamingService;
    1616import net.i2p.data.DataFormatException;
     17import net.i2p.data.DataHelper;
    1718import net.i2p.data.Destination;
    1819import net.i2p.i2ptunnel.I2PTunnelHTTPClient;
     
    166167                nsOptions.setProperty("list", book);
    167168                if (referer != null && referer.startsWith("http")) {
    168                     String from = "<a href=\"" + referer + "\">" + referer + "</a>";
     169                    String ref = DataHelper.escapeHTML(referer);
     170                    String from = "<a href=\"" + ref + "\">" + ref + "</a>";
    169171                    nsOptions.setProperty("s", _t("Added via address helper from {0}", from));
    170172                } else {
  • router/java/src/net/i2p/router/RouterVersion.java

    rc901010d rf5bf4ec  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 23;
     21    public final static long BUILD = 24;
    2222
    2323    /** for example "-test" */
    24     public final static String EXTRA = "";
     24    public final static String EXTRA = "-rc";
    2525    public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
    2626    public static void main(String args[]) {
Note: See TracChangeset for help on using the changeset viewer.