Author: toad
Date: 2007-03-22 13:36:45 +0000 (Thu, 22 Mar 2007)
New Revision: 12273

Modified:
   trunk/freenet/src/freenet/clients/http/filter/HTMLFilter.java
Log:
Fix #1242: Allow </form>

Modified: trunk/freenet/src/freenet/clients/http/filter/HTMLFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/HTMLFilter.java       
2007-03-22 11:03:56 UTC (rev 12272)
+++ trunk/freenet/src/freenet/clients/http/filter/HTMLFilter.java       
2007-03-22 13:36:45 UTC (rev 12273)
@@ -1565,6 +1565,10 @@
                        ParsedTag p,
                        HTMLParseContext pc) throws DataFilterException {
                        Hashtable hn = super.sanitizeHash(h, p, pc);
+                       if(p.startSlash) {
+                               // Allow, but only with standard elements
+                               return hn;
+                       }
                        String method = (String) h.get("method");
                        String action = (String) h.get("action");
                        String finalAction;


Reply via email to