Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a67f0f

Browse files
committed
Patch for #3671
1 parent 094cfee commit 0a67f0f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from 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"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/core/shell.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from lib.core.data import paths
1515
from lib.core.enums import AUTOCOMPLETE_TYPE
1616
from lib.core.enums import OS
17+
from lib.core.settings import IS_WIN
1718
from lib.core.settings import MAX_HISTORY_LENGTH
1819

1920
try:
@@ -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

107113
def autoCompletion(completion=None, os=None, commands=None):
108114
if not readlineAvailable():

0 commit comments

Comments
 (0)