Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6972020

Browse files
committed
Bug fix for login-like SQLi (OR with 500 result)
1 parent 0b91a60 commit 6972020

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/request/redirecthandler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def http_error_302(self, req, fp, code, msg, headers):
122122
req.headers[HTTP_HEADER.COOKIE] = headers[HTTP_HEADER.SET_COOKIE].split(conf.cookieDel or DEFAULT_COOKIE_DELIMITER)[0]
123123
try:
124124
result = urllib2.HTTPRedirectHandler.http_error_302(self, req, fp, code, msg, headers)
125+
except urllib2.HTTPError, e:
126+
result = e
125127
except:
126128
redurl = None
127129
result = fp

0 commit comments

Comments
 (0)