change buttons from GET to POST

This commit is contained in:
zzz
2010-11-19 16:42:23 +00:00
parent dd39f3f244
commit 6b0c931200
5 changed files with 6 additions and 6 deletions

View File

@ -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");