File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1818from 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 "
2222TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2323TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2424VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change 3131from lib .core .threads import getCurrentThreadData
3232from lib .request .basic import decodePage
3333from lib .request .basic import parseResponse
34+ from thirdparty import six
3435from thirdparty .six .moves import urllib as _urllib
3536
3637class 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
You can’t perform that action at this time.
0 commit comments