From 9766f632a60067480b162f9e509b0406aa871f13 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 18 Feb 2013 21:32:34 +0100 Subject: [PATCH] Always lower-case the magnet ID. --- src/main/java/net/pterodactylus/rhynodge/states/TorrentState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.7.4