File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020from thirdparty .six import unichr as _unichr
2121
2222# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23- VERSION = "1.5.7.0 "
23+ VERSION = "1.5.7.1 "
2424TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2525TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2626VERSION_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 1010import string
1111import sys
1212
13- if sys .version_info >= (3 , 0 ):
13+ PY3 = sys .version_info >= (3 , 0 )
14+
15+ if PY3 :
1416 xrange = range
1517 text_type = str
1618 string_types = (str ,)
@@ -92,7 +94,7 @@ def safechardecode(value, binary=False):
9294
9395 if binary :
9496 if isinstance (retVal , text_type ):
95- retVal = retVal .encode ("utf8" )
97+ retVal = retVal .encode ("utf8" , errors = "surrogatepass" if PY3 else "strict" )
9698
9799 elif isinstance (value , (list , tuple )):
98100 for i in xrange (len (value )):
You can’t perform that action at this time.
0 commit comments