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 18
18
from thirdparty .six import unichr as _unichr
19
19
20
20
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21
- VERSION = "1.4.12.22 "
21
+ VERSION = "1.4.12.23 "
22
22
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
23
23
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
24
24
VERSION_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 31
31
from lib .core .threads import getCurrentThreadData
32
32
from lib .request .basic import decodePage
33
33
from lib .request .basic import parseResponse
34
+ from thirdparty import six
34
35
from thirdparty .six .moves import urllib as _urllib
35
36
36
37
class SmartRedirectHandler (_urllib .request .HTTPRedirectHandler ):
@@ -182,7 +183,7 @@ def _(self, length=None):
182
183
threadData .lastRedirectURL = (threadData .lastRequestUID , redurl )
183
184
184
185
result .redcode = code
185
- result .redurl = getUnicode (redurl )
186
+ result .redurl = getUnicode (redurl ) if six . PY3 else redurl
186
187
return result
187
188
188
189
http_error_301 = http_error_303 = http_error_307 = http_error_302
You can’t perform that action at this time.
0 commit comments