forked from I2P_Developers/i2p.i2p
graphs.jsp: Fix saving settings (ticket #857)
This commit is contained in:
@ -332,10 +332,10 @@ public class GraphHelper extends FormHandler {
|
||||
public String getForm() {
|
||||
if (StatSummarizer.isDisabled())
|
||||
return "";
|
||||
String prev = System.getProperty("net.i2p.router.web.GraphHelper.nonce");
|
||||
if (prev != null) System.setProperty("net.i2p.router.web.GraphHelper.noncePrev", prev);
|
||||
String nonce = "" + _context.random().nextLong();
|
||||
System.setProperty("net.i2p.router.web.GraphHelper.nonce", nonce);
|
||||
// too hard to use the standard formhandler.jsi / FormHandler.java session nonces
|
||||
// since graphs.jsp needs the refresh value in its <head>.
|
||||
// So just use the "shared/console nonce".
|
||||
String nonce = CSSHelper.getNonce();
|
||||
try {
|
||||
_out.write("<br><h3>" + _("Configure Graph Display") + " [<a href=\"configstats\">" + _("Select Stats") + "</a>]</h3>");
|
||||
_out.write("<form action=\"graphs\" method=\"POST\">\n" +
|
||||
|
@ -1,3 +1,6 @@
|
||||
2013-03-03 zzz
|
||||
* graphs.jsp: Fix saving settings (ticket #857)
|
||||
|
||||
2013-03-03 kytv
|
||||
* Update geoip.txt based on Maxmind GeoLite Country database from 2013-02-19
|
||||
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 11;
|
||||
public final static long BUILD = 12;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user