Author: j16sdiz Date: 2009-03-20 06:06:00 +0000 (Fri, 20 Mar 2009) New Revision: 26115
Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex Log: More CSS fix Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java =================================================================== --- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java 2009-03-20 02:56:03 UTC (rev 26114) +++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java 2009-03-20 06:06:00 UTC (rev 26115) @@ -1,4 +1,4 @@ -/* The following code was generated by JFlex 1.4.2 on 3/20/09 10:50 AM */ +/* The following code was generated by JFlex 1.4.2 on 3/20/09 2:03 PM */ /* 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:50 AM from the specification file + * on 3/20/09 2:03 PM from the specification file * <tt>src/freenet/clients/http/filter/CSSTokenizerFilter.jflex</tt> */ class CSSTokenizerFilter { @@ -1593,6 +1593,14 @@ if(debug) log("Matched important: "+s); } case 55: break; + case 9: + { String s = yytext(); + if(s.toLowerCase().startsWith("url")) throwError(l10n("invalidURLContents")); + if(!s.toLowerCase().startsWith("rgb") && !s.toLowerCase().startsWith("attr")) throwError(l10n("invalidURLContents")); + w.write(s); + if(debug) log("Matched function start: "+s); + } + case 56: break; case 16: { if(!deleteErrors) { throwError(l10n("unknownAtIdentifierLabel")+" "+yytext()); @@ -1602,14 +1610,6 @@ // Ignore } } - 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(); Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex =================================================================== --- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex 2009-03-20 02:56:03 UTC (rev 26114) +++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex 2009-03-20 06:06:00 UTC (rev 26115) @@ -438,7 +438,7 @@ {IDENT}"(" { String s = yytext(); if(s.toLowerCase().startsWith("url")) throwError(l10n("invalidURLContents")); - if(!s.toLowerCase().startsWith("rgb")) throwError(l10n("invalidURLContents")); + if(!s.toLowerCase().startsWith("rgb") && !s.toLowerCase().startsWith("attr")) 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
