Skip to content

Commit 122c471

Browse files
committed
Fixes #4897
1 parent 92b0652 commit 122c471

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/core/dump.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,10 @@ def dbTableValues(self, tableValues):
407407
if conf.api:
408408
self._write(tableValues, content_type=CONTENT_TYPE.DUMP_TABLE)
409409

410-
dumpDbPath = os.path.join(conf.dumpPath, unsafeSQLIdentificatorNaming(db))
410+
try:
411+
dumpDbPath = os.path.join(conf.dumpPath, unsafeSQLIdentificatorNaming(db))
412+
except UnicodeError:
413+
dumpDbPath = os.path.join(conf.dumpPath, normalizeUnicode(unsafeSQLIdentificatorNaming(db)))
411414

412415
if conf.dumpFormat == DUMP_FORMAT.SQLITE:
413416
replication = Replication(os.path.join(conf.dumpPath, "%s.sqlite3" % unsafeSQLIdentificatorNaming(db)))

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.5.12.1"
23+
VERSION = "1.5.12.2"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

0 commit comments

Comments
 (0)