diff --git a/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java b/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java index ccd96e7a0eb4def70a6dee669d897ea152fc0d12..d36cfbaf906989c34c4f9904ddae5602658389ef 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/ConfigRestartBean.java @@ -81,7 +81,7 @@ public class ConfigRestartBean { /** @param s value,label,... pairs */ private static void buttons(RouterContext ctx, StringBuilder buf, String url, String nonce, String[] s) { - buf.append("<form action=\"").append(url).append("\" method=\"GET\">\n"); + buf.append("<form action=\"").append(url).append("\" method=\"POST\">\n"); buf.append("<input type=\"hidden\" name=\"consoleNonce\" value=\"").append(nonce).append("\" >\n"); for (int i = 0; i < s.length; i+= 2) buf.append("<button type=\"submit\" name=\"action\" value=\"").append(s[i]).append("\" >").append(_(s[i+1], ctx)).append("</button>\n"); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java index 4f3dc4fcc7628ca475852663e240a78d015f200e..31b67dc81332ba73f054a2846e1ed00921c9c277 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/GraphHelper.java @@ -128,7 +128,7 @@ public class GraphHelper extends HelperBase { saveSettings(); try { _out.write("<br><h3>" + _("Configure Graph Display") + " [<a href=\"configstats\">" + _("Select Stats") + "</a>]</h3>"); - _out.write("<form action=\"graphs\" method=\"GET\">"); + _out.write("<form action=\"graphs\" method=\"POST\">"); _out.write(_("Periods") + ": <input size=\"3\" type=\"text\" name=\"periodCount\" value=\"" + _periodCount + "\"><br>\n"); _out.write(_("Plot averages") + ": <input type=\"radio\" class=\"optbox\" name=\"showEvents\" value=\"false\" " + (_showEvents ? "" : "checked=\"true\" ") + "> "); _out.write(_("or")+ " " +_("plot events") + ": <input type=\"radio\" class=\"optbox\" name=\"showEvents\" value=\"true\" "+ (_showEvents ? "checked=\"true\" " : "") + "><br>\n"); diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java index 5fc2000c5a7bf299cd9accbb22ca90f899ffaf91..80877353845613650a864f9a9a0eb0f211a98752 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryBarRenderer.java @@ -220,7 +220,7 @@ public class SummaryBarRenderer { System.setProperty("net.i2p.router.web.UpdateHandler.noncePrev", prev); System.setProperty("net.i2p.router.web.UpdateHandler.nonce", nonce+""); String uri = _helper.getRequestURI(); - buf.append("<p><form action=\"").append(uri).append("\" method=\"GET\">\n"); + buf.append("<p><form action=\"").append(uri).append("\" method=\"POST\">\n"); buf.append("<input type=\"hidden\" name=\"updateNonce\" value=\"").append(nonce).append("\" >\n"); if (_helper.updateAvailable()) { buf.append("<button type=\"submit\" name=\"updateAction\" value=\"signed\" >") @@ -320,7 +320,7 @@ public class SummaryBarRenderer { if (prev != null) System.setProperty("net.i2p.router.web.ReseedHandler.noncePrev", prev); System.setProperty("net.i2p.router.web.ReseedHandler.nonce", nonce+""); String uri = _helper.getRequestURI(); - buf.append("<p><form action=\"").append(uri).append("\" method=\"GET\">\n"); + buf.append("<p><form action=\"").append(uri).append("\" method=\"POST\">\n"); buf.append("<input type=\"hidden\" name=\"reseedNonce\" value=\"").append(nonce).append("\" >\n"); buf.append("<button type=\"submit\" value=\"Reseed\" >").append(_("Reseed")).append("</button></form></p>\n"); } diff --git a/apps/routerconsole/jsp/summary.jsi b/apps/routerconsole/jsp/summary.jsi index 29be519891ba62fe92f25dc7a57012daf331b544..5a81e7af3dcd2cc457339a8b7593e211e1aa63f8 100644 --- a/apps/routerconsole/jsp/summary.jsi +++ b/apps/routerconsole/jsp/summary.jsi @@ -24,7 +24,7 @@ } else { // since we don't have an iframe this will reload the base page, and // the new delay will be passed to the iframe above - out.print("<div class=\"refresh\"><form action=\"" + request.getRequestURI() + "\" method=\"GET\">\n"); + out.print("<div class=\"refresh\"><form action=\"" + request.getRequestURI() + "\" method=\"POST\">\n"); out.print("<b>"); // We have intl defined when this is included, but not when compiled standalone. out.print(intl._("Refresh (s)")); diff --git a/apps/routerconsole/jsp/summaryframe.jsp b/apps/routerconsole/jsp/summaryframe.jsp index 2f6f19ec09c76fa412a8ded0f30daeb4db0f3afa..68959499f28f188598f758d6612cb9ac3a717de6 100644 --- a/apps/routerconsole/jsp/summaryframe.jsp +++ b/apps/routerconsole/jsp/summaryframe.jsp @@ -52,7 +52,7 @@ <% // d and shutdownSoon defined above if (!shutdownSoon) { - out.print("<div class=\"refresh\"><form action=\"summaryframe.jsp\" method=\"GET\">\n"); + out.print("<div class=\"refresh\"><form action=\"summaryframe.jsp\" method=\"POST\">\n"); if ("0".equals(d)) { out.print("<b>"); out.print(intl._("Refresh (s)"));