Author: toad
Date: 2009-01-07 19:33:43 +0000 (Wed, 07 Jan 2009)
New Revision: 24965

Modified:
   trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
Log:
For now, POST to XMLLibrarian if secureid checking is enabled, otherwise use 
GET for compatibility with older versions


Modified: trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2009-01-07 
19:32:05 UTC (rev 24964)
+++ trunk/freenet/src/freenet/clients/http/WelcomeToadlet.java  2009-01-07 
19:33:43 UTC (rev 24965)
@@ -556,7 +556,9 @@
         // Search form
         if(core.node.pluginManager != null && 
                        
core.node.pluginManager.isPluginLoaded("plugins.XMLLibrarian.XMLLibrarian")) {
-               HTMLNode form = searchBox.addChild("form", new String[] { 
"method", "action" }, new String[] { "GET", 
"/plugins/plugins.XMLLibrarian.XMLLibrarian" });
+               HTMLNode form = ctx.getContainer().isSecureIDCheckingDisabled() 
? 
+                               searchBox.addChild("form", new String[] { 
"method", "action" }, new String[] { "GET", 
"/plugins/plugins.XMLLibrarian.XMLLibrarian" }) : 
+                                       ctx.addFormChild(searchBox, 
"/plugins/plugins.XMLLibrarian.XMLLibrarian", "searchBox");
                form.addChild("input", new String[] { "type", "name", "value" 
}, new String[] { "hidden", "choice", "index" });
                form.addChild("input", new String[] { "type", "size", "name" }, 
new String[] { "text", "80", "search" });
                form.addChild("input", new String[] { "type", "name", "value" 
}, new String[] { "submit", "find", "Search Freenet!" });

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to