[freenet-cvs] r11228 - trunk/freenet/src/freenet/clients/http/filter

toad at freenetproject.org toad at freenetproject.org
Mon Dec 4 16:49:11 UTC 2006


Author: toad
Date: 2006-12-04 16:49:10 +0000 (Mon, 04 Dec 2006)
New Revision: 11228

Modified:
   trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java
Log:
No functional changes.

Modified: trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java
===================================================================
--- trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java	2006-12-04 16:48:40 UTC (rev 11227)
+++ trunk/freenet/src/freenet/clients/http/filter/JPEGFilter.java	2006-12-04 16:49:10 UTC (rev 11228)
@@ -47,9 +47,6 @@
 	static final byte[] soi = new byte[] {
 		(byte)0xFF, (byte)0xD8 // Start of Image
 	};
-	static final byte[] app0 = new byte[] {
-		(byte)0xFF, (byte)0xE0 // APP0 (header)
-	};
 	static final byte[] identifier = new byte[] {
 		(byte)'J', (byte)'F', (byte)'I', (byte)'F', 0
 	};
@@ -74,9 +71,8 @@
 	throws DataFilterException, IOException {
 		boolean logMINOR = Logger.shouldLog(Logger.MINOR, this);
 		long length = data.size();
-		boolean hadHeader = false;
 		if(length < 6) {
-			throwError("Too short", "The file is too short to be a GIF.");
+			throwError("Too short", "The file is too short to be a JPEG.");
 		}
 		InputStream is = data.getInputStream();
 		BufferedInputStream bis = new BufferedInputStream(is);




More information about the cvs mailing list