Skip to content

Commit d9e6e67

Browse files
committed
1 parent 7e675fe commit d9e6e67

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.12.22"
21+
VERSION = "1.4.12.23"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/redirecthandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from lib.core.threads import getCurrentThreadData
3232
from lib.request.basic import decodePage
3333
from lib.request.basic import parseResponse
34+
from thirdparty import six
3435
from thirdparty.six.moves import urllib as _urllib
3536

3637
class SmartRedirectHandler(_urllib.request.HTTPRedirectHandler):
@@ -182,7 +183,7 @@ def _(self, length=None):
182183
threadData.lastRedirectURL = (threadData.lastRequestUID, redurl)
183184

184185
result.redcode = code
185-
result.redurl = getUnicode(redurl)
186+
result.redurl = getUnicode(redurl) if six.PY3 else redurl
186187
return result
187188

188189
http_error_301 = http_error_303 = http_error_307 = http_error_302

0 commit comments

Comments
 (0)