Author: toad
Date: 2009-01-17 18:23:44 +0000 (Sat, 17 Jan 2009)
New Revision: 25110

Modified:
   trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
Log:
Check whether already has a secureid


Modified: trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java     
2009-01-17 18:21:24 UTC (rev 25109)
+++ trunk/freenet/src/freenet/clients/http/SimpleToadletServer.java     
2009-01-17 18:23:44 UTC (rev 25110)
@@ -888,6 +888,11 @@
        public String fixLink(String orig) {
                if(isSecureIDCheckingDisabled())
                        return orig;
+               if((orig.indexOf("?secureid=") > -1) ||
+                               (orig.indexOf("?") > -1 && 
orig.substring(orig.indexOf("?")).indexOf("&secureid=") > -1)) {
+                       Logger.error(this, "Already has a secureid: "+orig);
+                       return orig;
+               }
                String toSign = orig;
                String frag = "";
                int hashIndex = toSign.indexOf('#');

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

Reply via email to