* i2psnark: Fix maggot links, and magnet links with trailing parameters (thx user)

This commit is contained in:
zzz
2011-02-06 14:22:32 +00:00
parent c38d72d178
commit f9d43a8a5f
3 changed files with 6 additions and 3 deletions

View File

@ -1409,13 +1409,13 @@ public class I2PSnarkServlet extends Default {
ihash = url.substring(MAGNET.length()).trim();
int amp = ihash.indexOf('&');
if (amp >= 0)
ihash = url.substring(0, amp);
ihash = ihash.substring(0, amp);
name = "Magnet " + ihash;
} else if (url.startsWith(MAGGOT)) {
ihash = url.substring(MAGGOT.length()).trim();
int col = ihash.indexOf(':');
if (col >= 0)
ihash = url.substring(0, col);
ihash = ihash.substring(0, col);
name = "Maggot " + ihash;
} else {
return;

View File

@ -1,3 +1,6 @@
2011-02-06 zzz
* i2psnark: Fix maggot links, and magnet links with trailing parameters (thx user)
2011-02-05 zzz
* .mtn-ignore: New, to make it harder to check in stuff you shouldn't
* BOB: Drop checked-in build dir

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 3;
public final static long BUILD = 4;
/** for example "-test" */
public final static String EXTRA = "";