From: David ‘Bombe’ Roden Date: Mon, 18 Feb 2013 20:32:34 +0000 (+0100) Subject: Always lower-case the magnet ID. X-Git-Tag: 0.1~27 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9766f632a60067480b162f9e509b0406aa871f13;p=rhynodge.git Always lower-case the magnet ID. --- diff --git a/src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java b/src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java index c4c3e0b..ddcd518 100644 --- a/src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java +++ b/src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java @@ -262,7 +262,7 @@ public class TorrentState extends AbstractState implements Iterable List parameters = URLEncodedUtils.parse(magnetUri.substring("magnet:?".length()), Charset.forName("UTF-8")); for (NameValuePair parameter : parameters) { if (parameter.getName().equals("xt")) { - return parameter.getValue(); + return parameter.getValue().toLowerCase(); } } return null;