Author: xor
Date: 2008-11-08 11:21:35 +0000 (Sat, 08 Nov 2008)
New Revision: 23418

Modified:
   trunk/plugins/Freetalk/Freetalk.java
Log:
Remove password checking for debugging.

Modified: trunk/plugins/Freetalk/Freetalk.java
===================================================================
--- trunk/plugins/Freetalk/Freetalk.java        2008-11-08 11:12:50 UTC (rev 
23417)
+++ trunk/plugins/Freetalk/Freetalk.java        2008-11-08 11:21:35 UTC (rev 
23418)
@@ -170,11 +170,13 @@

        public String handleHTTPGet(HTTPRequest request) throws 
PluginHTTPException {

+               /* FIXME 
                String pass = request.getParam("formPassword");
-               if(pass != null) {      /* FIXME: is this correct? what if the 
client just does not specify the password so that its null? */
+               if(pass != null) {      // FIXME: is this correct? what if the 
client just does not specify the password so that its null? 
                        if ((pass.length() == 0) || 
!pass.equals(pr.getNode().clientCore.formPassword))
                                return Errors.makeErrorPage(this, "Buh! Invalid 
form password");
                }
+               */

                String page = request.getPath().substring(PLUGIN_URI.length());
                if ((page.length() < 1) || ("/".equals(page)))
@@ -203,7 +205,7 @@

        public String handleHTTPPost(HTTPRequest request) throws 
PluginHTTPException {
                String pass = request.getPartAsString("formPassword", 32);
-               if ((pass.length() == 0) || 
!pass.equals(pr.getNode().clientCore.formPassword)) {
+               if (pass == null || (pass.length() == 0) || 
!pass.equals(pr.getNode().clientCore.formPassword)) {
                        return Errors.makeErrorPage(this, "Buh! Invalid form 
password");
                }



Reply via email to