commit dd9e75ba234d2d4aad90aedb0bf163d8bb13811b Author: Kostas Jakeliunas kostas@jakeliunas.com Date: Mon Mar 31 17:14:20 2014 +0300
Make GimpRecaptcha check be case-insensitive
Users report new captcha case-sensitivity as counter-intuitive. The fix is to simply ignore case when doing the comparison.
Fix bug #11377. --- lib/bridgedb/captcha.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/captcha.py b/lib/bridgedb/captcha.py index e5bf5e5..f993a9d 100644 --- a/lib/bridgedb/captcha.py +++ b/lib/bridgedb/captcha.py @@ -203,7 +203,7 @@ class GimpCaptcha(Captcha): finally: if validHMAC: decrypted = secretKey.decrypt(original) - if solution == decrypted: + if solution.lower() == decrypted.lower(): return True return False
tor-commits@lists.torproject.org