[tor-commits] [bridgedb/develop] Explicitly require CaptchaProtectedResource.checkSolution() to be True.

isis at torproject.org isis at torproject.org
Wed Mar 26 05:49:31 UTC 2014


commit acf37dc00b4d9e2b8e3619a56f1711bb503d9e5b
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Mar 18 04:50:04 2014 +0000

    Explicitly require CaptchaProtectedResource.checkSolution() to be True.
    
     * FIXES #11231.
---
 lib/bridgedb/HTTPServer.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 47009df..27dd61e 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -215,7 +215,7 @@ class CaptchaProtectedResource(twisted.web.resource.Resource):
         :returns: A rendered HTML page containing a ReCaptcha challenge image
                   for the client to solve.
         """
-        if self.checkSolution(request):
+        if self.checkSolution(request) is True:
             try:
                 rendered = self.resource.render(request)
             except Exception as err:





More information about the tor-commits mailing list