mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Fixes #4470
This commit is contained in:
parent
7e675fed9f
commit
d9e6e678e8
|
@ -18,7 +18,7 @@ from lib.core.enums import OS
|
|||
from thirdparty.six import unichr as _unichr
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.4.12.22"
|
||||
VERSION = "1.4.12.23"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||
|
|
|
@ -31,6 +31,7 @@ from lib.core.settings import MAX_TOTAL_REDIRECTIONS
|
|||
from lib.core.threads import getCurrentThreadData
|
||||
from lib.request.basic import decodePage
|
||||
from lib.request.basic import parseResponse
|
||||
from thirdparty import six
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
|
||||
class SmartRedirectHandler(_urllib.request.HTTPRedirectHandler):
|
||||
|
@ -182,7 +183,7 @@ class SmartRedirectHandler(_urllib.request.HTTPRedirectHandler):
|
|||
threadData.lastRedirectURL = (threadData.lastRequestUID, redurl)
|
||||
|
||||
result.redcode = code
|
||||
result.redurl = getUnicode(redurl)
|
||||
result.redurl = getUnicode(redurl) if six.PY3 else redurl
|
||||
return result
|
||||
|
||||
http_error_301 = http_error_303 = http_error_307 = http_error_302
|
||||
|
|
Loading…
Reference in New Issue
Block a user