Author: toad
Date: 2005-11-11 21:58:05 +0000 (Fri, 11 Nov 2005)
New Revision: 7530
Modified:
trunk/freenet/src/freenet/client/DefaultMIMETypes.java
trunk/freenet/src/freenet/node/Version.java
Log:
167:
Minor MIME type guessing bugfix.
Modified: trunk/freenet/src/freenet/client/DefaultMIMETypes.java
===================================================================
--- trunk/freenet/src/freenet/client/DefaultMIMETypes.java 2005-11-11
21:55:47 UTC (rev 7529)
+++ trunk/freenet/src/freenet/client/DefaultMIMETypes.java 2005-11-11
21:58:05 UTC (rev 7530)
@@ -735,7 +735,7 @@
/** Guess a MIME type from a filename */
public static String guessMIMEType(String arg) {
- int x = arg.indexOf('.');
+ int x = arg.lastIndexOf('.');
if(x == -1 || x == arg.length()-1)
return DEFAULT_MIME_TYPE;
String ext = arg.substring(x+1).toLowerCase();
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2005-11-11 21:55:47 UTC (rev
7529)
+++ trunk/freenet/src/freenet/node/Version.java 2005-11-11 21:58:05 UTC (rev
7530)
@@ -20,7 +20,7 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- public static final int buildNumber = 166;
+ public static final int buildNumber = 167;
/** Oldest build of Fred we will talk to */
public static final int lastGoodBuild = 166;