From: Michael Tremer Date: Mon, 6 Dec 2010 14:51:20 +0000 (+0100) Subject: Fix very serious issue in tracker with wrong hashes. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=da8a8277bd87aeb663f856b83056f485afd88725;p=ipfire.org.git Fix very serious issue in tracker with wrong hashes. --- diff --git a/www/webapp/torrent.py b/www/webapp/torrent.py index 8f6247f8..18d5da67 100644 --- a/www/webapp/torrent.py +++ b/www/webapp/torrent.py @@ -12,7 +12,7 @@ def decode_hex(s): if not c == chr(i): continue - ret.append("%0x" % i) + ret.append("%02x" % i) return "".join(ret)