From 6972020fafba9a341bc4e3a55397aa1f728ec7b5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 18 Dec 2014 15:58:19 +0100 Subject: [PATCH] Bug fix for login-like SQLi (OR with 500 result) --- lib/request/redirecthandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/request/redirecthandler.py b/lib/request/redirecthandler.py index 8d4338175..f67859af7 100644 --- a/lib/request/redirecthandler.py +++ b/lib/request/redirecthandler.py @@ -122,6 +122,8 @@ class SmartRedirectHandler(urllib2.HTTPRedirectHandler): req.headers[HTTP_HEADER.COOKIE] = headers[HTTP_HEADER.SET_COOKIE].split(conf.cookieDel or DEFAULT_COOKIE_DELIMITER)[0] try: result = urllib2.HTTPRedirectHandler.http_error_302(self, req, fp, code, msg, headers) + except urllib2.HTTPError, e: + result = e except: redurl = None result = fp