Changeset 77cfe0b


Ignore:
Timestamp:
Mar 3, 2013 8:32:02 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9b0c4815
Parents:
041da81
Message:

graphs.jsp: Fix saving settings (ticket #857)

Files:
3 edited

Legend:

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

    r041da81 r77cfe0b  
    333333        if (StatSummarizer.isDisabled())
    334334            return "";
    335         String prev = System.getProperty("net.i2p.router.web.GraphHelper.nonce");
    336         if (prev != null) System.setProperty("net.i2p.router.web.GraphHelper.noncePrev", prev);
    337         String nonce = "" + _context.random().nextLong();
    338         System.setProperty("net.i2p.router.web.GraphHelper.nonce", nonce);
     335        // too hard to use the standard formhandler.jsi / FormHandler.java session nonces
     336        // since graphs.jsp needs the refresh value in its <head>.
     337        // So just use the "shared/console nonce".
     338        String nonce = CSSHelper.getNonce();
    339339        try {
    340340            _out.write("<br><h3>" + _("Configure Graph Display") + " [<a href=\"configstats\">" + _("Select Stats") + "</a>]</h3>");
  • history.txt

    r041da81 r77cfe0b  
     12013-03-03 zzz
     2 * graphs.jsp: Fix saving settings (ticket #857)
     3
    142013-03-03 kytv
    25 * Update geoip.txt based on Maxmind GeoLite Country database from 2013-02-19
  • router/java/src/net/i2p/router/RouterVersion.java

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