File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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.96 "
21+ VERSION = "1.3.5.97 "
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 1414from lib .core .data import paths
1515from lib .core .enums import AUTOCOMPLETE_TYPE
1616from lib .core .enums import OS
17+ from lib .core .settings import IS_WIN
1718from lib .core .settings import MAX_HISTORY_LENGTH
1819
1920try :
@@ -103,6 +104,11 @@ def loadHistory(completion=None):
103104 except IOError as ex :
104105 warnMsg = "there was a problem loading the history file '%s' (%s)" % (historyPath , getSafeExString (ex ))
105106 logger .warn (warnMsg )
107+ except UnicodeError :
108+ if IS_WIN :
109+ warnMsg = "there was a problem loading the history file '%s'. " % historyPath
110+ warnMsg += "More info can be found at 'https://github.com/pyreadline/pyreadline/issues/30'"
111+ logger .warn (warnMsg )
106112
107113def autoCompletion (completion = None , os = None , commands = None ):
108114 if not readlineAvailable ():
You can’t perform that action at this time.
0 commit comments