Changeset d6b0b1b9


Ignore:
Timestamp:
Jul 26, 2014 8:14:01 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1246e1c
Parents:
1e0c970
Message:

refresh tweaks
another escape html

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/EventLogHelper.java

    r1e0c970 rd6b0b1b9  
    161161        if (xev == null)
    162162            xev = _event;
     163        xev = DataHelper.escapeHTML(xev);
    163164        if (events.isEmpty()) {
    164165            if (isAll) {
  • apps/routerconsole/jsp/summary.jsi

    r1e0c970 rd6b0b1b9  
    1818            d = intl.getRefresh();
    1919        else {
    20             d = net.i2p.data.DataHelper.stripHTML(d);  // XSS
     20            long delay;
     21            try {
     22                delay = Long.parseLong(d);
     23            } catch (NumberFormatException nfe) {
     24                delay = 60;
     25            }
    2126            // pass the new delay parameter to the iframe
    22             newDelay = "?refresh=" + d;
     27            newDelay = "?refresh=" + delay;
    2328            // update disable boolean
    2429            intl.setDisableRefresh(d);
  • apps/routerconsole/jsp/summaryframe.jsp

    r1e0c970 rd6b0b1b9  
    2424        if (d == null || "".equals(d)) {
    2525            // set below
    26         } else {
     26        } else if (intl.getNonce().equals(conNonceParam)) {
    2727            d = net.i2p.data.DataHelper.stripHTML(d);  // XSS
    2828            intl.setRefresh(d);
  • router/java/src/net/i2p/router/RouterVersion.java

    r1e0c970 rd6b0b1b9  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 27;
     21    public final static long BUILD = 28;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.