Author: j16sdiz
Date: 2009-03-24 08:31:51 +0000 (Tue, 24 Mar 2009)
New Revision: 26145
Modified:
trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
Log:
Add formPassword for restart-after-config-change form (fix bug 2925)
Modified: trunk/freenet/src/freenet/clients/http/ConfigToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2009-03-24
02:08:04 UTC (rev 26144)
+++ trunk/freenet/src/freenet/clients/http/ConfigToadlet.java 2009-03-24
08:31:51 UTC (rev 26145)
@@ -71,9 +71,10 @@
if (node.isUsingWrapper()) {
alertNode.addChild("br");
- HTMLNode restartForm =
alertNode.addChild("form", //
- new String[] { "action",
"method" },//
- new String[] { "/", "get" });
+ HTMLNode restartForm =
alertNode.addChild("form", new String[] { "action", "method", "enctype", "id",
"accept-charset" },
+ new String[] { "/", "post",
"multipart/form-data", "restartForm", "utf-8"} ).addChild("div");
+ restartForm.addChild("input", new String[] {
"type", "name", "value" },
+ new String[] { "hidden",
"formPassword", node.clientCore.formPassword });
restartForm.addChild("div");
restartForm.addChild("input",//
new String[] { "type", "name"
},//
@@ -297,9 +298,7 @@
if (node.isUsingWrapper()) {
content.addChild("br");
- HTMLNode restartForm =
content.addChild("form",//
- new String[] { "action",
"method" }, new String[] { "/", "get" }//
- ).addChild("div");
+ HTMLNode restartForm =
ctx.addFormChild(content, "/", "restartForm");
restartForm.addChild("input",//
new String[] { "type", "name"
},//
new String[] { "hidden",
"restart" });
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs