* 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(); ihash = url.substring(MAGNET.length()).trim();
int amp = ihash.indexOf('&'); int amp = ihash.indexOf('&');
if (amp >= 0) if (amp >= 0)
ihash = url.substring(0, amp); ihash = ihash.substring(0, amp);
name = "Magnet " + ihash; name = "Magnet " + ihash;
} else if (url.startsWith(MAGGOT)) { } else if (url.startsWith(MAGGOT)) {
ihash = url.substring(MAGGOT.length()).trim(); ihash = url.substring(MAGGOT.length()).trim();
int col = ihash.indexOf(':'); int col = ihash.indexOf(':');
if (col >= 0) if (col >= 0)
ihash = url.substring(0, col); ihash = ihash.substring(0, col);
name = "Maggot " + ihash; name = "Maggot " + ihash;
} else { } else {
return; 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 2011-02-05 zzz
* .mtn-ignore: New, to make it harder to check in stuff you shouldn't * .mtn-ignore: New, to make it harder to check in stuff you shouldn't
* BOB: Drop checked-in build dir * BOB: Drop checked-in build dir

View File

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