Author: j16sdiz
Date: 2009-03-20 02:52:58 +0000 (Fri, 20 Mar 2009)
New Revision: 26112

Modified:
   trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java
   trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
Log:
CSS3 support is all broken, don't try

Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java       
2009-03-20 02:45:44 UTC (rev 26111)
+++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java       
2009-03-20 02:52:58 UTC (rev 26112)
@@ -1,4 +1,4 @@
-/* The following code was generated by JFlex 1.4.2 on 3/20/09 10:36 AM */
+/* The following code was generated by JFlex 1.4.2 on 3/20/09 10:50 AM */
 
 /* This code is part of Freenet. It is distributed under the GNU General
  * Public License, version 2 (or at your option any later version). See
@@ -18,7 +18,7 @@
 /**
  * This class is a scanner generated by 
  * <a href="http://www.jflex.de/";>JFlex</a> 1.4.2
- * on 3/20/09 10:36 AM from the specification file
+ * on 3/20/09 10:50 AM from the specification file
  * <tt>src/freenet/clients/http/filter/CSSTokenizerFilter.jflex</tt>
  */
 class CSSTokenizerFilter {
@@ -1603,25 +1603,33 @@
        }
           }
         case 56: break;
+        case 9: 
+          { String s = yytext();
+       if(s.toLowerCase().startsWith("url")) 
throwError(l10n("invalidURLContents"));
+       if(!s.toLowerCase().startsWith("rgb")) 
throwError(l10n("invalidURLContents"));
+       w.write(s);
+       if(debug) log("Matched function start: "+s);
+          }
+        case 57: break;
         case 11: 
           { String s = yytext();
        w.write(s);
        if(debug) log("Matched measurement: "+s);
           }
-        case 57: break;
+        case 58: break;
         case 18: 
           { String s = yytext();
        w.write(s);
        if(debug) log("Matched |=: "+s);
           }
-        case 58: break;
+        case 59: break;
         case 32: 
           { String s = yytext();
        detectedCharset = s;
        if(debug) log("Matched and ignoring charset: "+s);
        // Ignore
           }
-        case 59: break;
+        case 60: break;
         case 10: 
           { if(postBadImportFlag) {
                // Ignore
@@ -1634,16 +1642,6 @@
                if(debug) log("Matched and passing on mediums list: "+s);
        }
           }
-        case 60: break;
-        case 9: 
-          { String s = yytext();
-       if(s.toLowerCase().startsWith("url")) 
throwError(l10n("invalidURLContents"));
-       if(!s.toLowerCase().startsWith("rgb") &&
-                       !s.toLowerCase().startsWith("not")      // hack for 
css3 support
-               ) throwError(l10n("invalidURLContents"));
-       w.write(s);
-       if(debug) log("Matched function start: "+s);
-          }
         case 61: break;
         case 4: 
           { String s = yytext();

Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex      
2009-03-20 02:45:44 UTC (rev 26111)
+++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex      
2009-03-20 02:52:58 UTC (rev 26112)
@@ -438,9 +438,7 @@
 {IDENT}"(" {
        String s = yytext();
        if(s.toLowerCase().startsWith("url")) 
throwError(l10n("invalidURLContents"));
-       if(!s.toLowerCase().startsWith("rgb") &&
-                       !s.toLowerCase().startsWith("not")      // hack for 
css3 support
-               ) throwError(l10n("invalidURLContents"));
+       if(!s.toLowerCase().startsWith("rgb")) 
throwError(l10n("invalidURLContents"));
        w.write(s);
        if(debug) log("Matched function start: "+s);
 }

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

Reply via email to