commit 039884c4f19bb3f52b076e1bc5901800b5258fe1 Author: Isis Lovecruft <i...@torproject.org> Date: Mon Nov 27 23:22:33 2017 +0000
Fix the moat server to only generate QRcodes when asked to do so. * FIXES #24443: https://bugs.torproject.org/24443 --- bridgedb/distributors/moat/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bridgedb/distributors/moat/server.py b/bridgedb/distributors/moat/server.py index daf62fa..eb356fe 100644 --- a/bridgedb/distributors/moat/server.py +++ b/bridgedb/distributors/moat/server.py @@ -560,7 +560,7 @@ class CaptchaCheckResource(CaptchaResource): "Transport '%s' is not currently supported" % data["transport"]) else: - qrcode = data["qrcode"] + qrcode = True if data["qrcode"] == "true" else False transport = type('')(data["transport"]) challenge = type('')(data["challenge"]) solution = type('')(data["solution"]) _______________________________________________ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits