Author: j16sdiz
Date: 2009-03-03 03:12:22 +0000 (Tue, 03 Mar 2009)
New Revision: 25875

Modified:
   trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
Log:
Even stricter PNG Filter

Does not allow any thing after IEND. The old code
check this only if output stream is null.

Modified: trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2009-03-02 15:17:03 UTC (rev 25874)
+++ trunk/freenet/src/freenet/clients/http/filter/PNGFilter.java        
2009-03-03 03:12:22 UTC (rev 25875)
@@ -274,7 +274,7 @@
                                }
                                lastChunkType = chunkTypeString;
                        }
-                       if(hasSeenIEND && dis.available() > 0 && output == null)
+                       if(hasSeenIEND && dis.available() > 0)
                                throwError("IEND not last chunk", "IEND not 
last chunk");
                        
                        dis.close();

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

Reply via email to