Author: toad
Date: 2006-11-13 13:33:11 +0000 (Mon, 13 Nov 2006)
New Revision: 10907

Modified:
   trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java
   trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
Log:
Another fix from UniquePerson, fixes comment encoding in CSS.

Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java       
2006-11-12 23:18:26 UTC (rev 10906)
+++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.java       
2006-11-13 13:33:11 UTC (rev 10907)
@@ -1,10 +1,11 @@
-/* The following code was generated by JFlex 1.4.1 on 31/10/06 20:19 */
+/* The following code was generated by JFlex 1.4.1 on 13/11/06 13:27 */

 /* 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
  * http://www.gnu.org/ for further details of the GPL. */ 
 package freenet.clients.http.filter;
 import java.io.*;
+import java.util.*;
 /* This class tokenizes a CSS2 Reader stream, writes it out to the output 
Writer, and filters any URLs found */
 // WARNING: this is not as thorough as the HTML parser - new versions of the 
standard could lead to anonymity risks. See comments in SaferFilter.java
 // Mostly from http://www.w3.org/TR/REC-CSS2/grammar.html
@@ -13,7 +14,7 @@
 /**
  * This class is a scanner generated by 
  * <a href="http://www.jflex.de/";>JFlex</a> 1.4.1
- * on 31/10/06 20:19 from the specification file
+ * on 13/11/06 13:27 from the specification file
  * <tt>freenet/clients/http/filter/CSSTokenizerFilter.jflex</tt>
  */
 class CSSTokenizerFilter {
@@ -1006,7 +1007,7 @@
        String commentEncode(String s) {
                StringBuffer sb = new StringBuffer(s.length());
                for(int i=0;i<s.length();i++) {
-                       char c = sb.charAt(i);
+                       char c = s.charAt(i);
                        if(c == '/')
                                sb.append("\\/");
                        else

Modified: trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex      
2006-11-12 23:18:26 UTC (rev 10906)
+++ trunk/freenet/src/freenet/clients/http/filter/CSSTokenizerFilter.jflex      
2006-11-13 13:33:11 UTC (rev 10907)
@@ -196,7 +196,7 @@
        String commentEncode(String s) {
                StringBuffer sb = new StringBuffer(s.length());
                for(int i=0;i<s.length();i++) {
-                       char c = sb.charAt(i);
+                       char c = s.charAt(i);
                        if(c == '/')
                                sb.append("\\/");
                        else


Reply via email to