File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3892,22 +3892,21 @@ def _thread(regex):
38923892
38933893 return retVal
38943894
3895- def normalizeUnicode (value ):
3895+ def normalizeUnicode (value , charset = string . printable [: string . printable . find ( ' ' ) + 1 ] ):
38963896 """
38973897 Does an ASCII normalization of unicode strings
38983898
38993899 # Reference: http://www.peterbe.com/plog/unicode-to-ascii
39003900
39013901 >>> normalizeUnicode(u'\u0161 u\u0107 uraj') == u'sucuraj'
39023902 True
3903- >>> normalizeUnicode(getUnicode(codecs.decode ("666f6f00626172", "hex "))) == u'foobar'
3903+ >>> normalizeUnicode(getUnicode(decodeHex ("666f6f00626172"))) == u'foobar'
39043904 True
39053905 """
39063906
39073907 retVal = value
39083908
39093909 if isinstance (value , six .text_type ):
3910- charset = string .printable [:string .printable .find (' ' ) + 1 ]
39113910 retVal = unicodedata .normalize ("NFKD" , value )
39123911 retVal = "" .join (_ for _ in retVal if _ in charset )
39133912
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.3.5.98 "
21+ VERSION = "1.3.5.99 "
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 )
You can’t perform that action at this time.
0 commit comments