]> git.ipfire.org Git - ipfire.org.git/commitdiff
Fix very serious issue in tracker with wrong hashes.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Dec 2010 14:51:20 +0000 (15:51 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 6 Dec 2010 14:51:20 +0000 (15:51 +0100)
www/webapp/torrent.py

index 8f6247f8c2f8e532a2b72fcbe87bba442215f25f..18d5da67be3e4f41a5d890ceee7b6ce7a607122f 100644 (file)
@@ -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)