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

Skip to content

Commit 869adc6

Browse files
committed
Minor update
1 parent a75ab8b commit 869adc6

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/core/dump.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def dbTables(self, dbTables):
246246
if table and isListLike(table):
247247
table = table[0]
248248

249-
maxlength = max(maxlength, len(unsafeSQLIdentificatorNaming(normalizeUnicode(table) or getUnicode(table))))
249+
maxlength = max(maxlength, getConsoleLength(unsafeSQLIdentificatorNaming(getUnicode(table))))
250250

251251
lines = "-" * (int(maxlength) + 2)
252252

@@ -267,7 +267,7 @@ def dbTables(self, dbTables):
267267
table = table[0]
268268

269269
table = unsafeSQLIdentificatorNaming(table)
270-
blank = " " * (maxlength - len(normalizeUnicode(table) or getUnicode(table)))
270+
blank = " " * (maxlength - getConsoleLength(getUnicode(table)))
271271
self._write("| %s%s |" % (table, blank))
272272

273273
self._write("+%s+\n" % lines)
@@ -362,7 +362,7 @@ def dbTablesCount(self, dbTables):
362362
for ctables in dbTables.values():
363363
for tables in ctables.values():
364364
for table in tables:
365-
maxlength1 = max(maxlength1, len(normalizeUnicode(table) or getUnicode(table)))
365+
maxlength1 = max(maxlength1, getConsoleLength(getUnicode(table)))
366366

367367
for db, counts in dbTables.items():
368368
self._write("Database: %s" % unsafeSQLIdentificatorNaming(db) if db else "Current database")
@@ -388,7 +388,7 @@ def dbTablesCount(self, dbTables):
388388
tables.sort(key=lambda _: _.lower() if hasattr(_, "lower") else _)
389389

390390
for table in tables:
391-
blank1 = " " * (maxlength1 - len(normalizeUnicode(table) or getUnicode(table)))
391+
blank1 = " " * (maxlength1 - getConsoleLength(getUnicode(table)))
392392
blank2 = " " * (maxlength2 - len(str(count)))
393393
self._write("| %s%s | %d%s |" % (table, blank1, count, blank2))
394394

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.10.29"
21+
VERSION = "1.3.10.30"
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)

0 commit comments

Comments
 (0)