mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
few fixes here and there
This commit is contained in:
parent
7e78876f6a
commit
f24187f251
3 changed files with 9 additions and 3 deletions
|
|
@ -440,7 +440,7 @@ class Enumeration:
|
|||
|
||||
# In PostgreSQL we get 1 if the privilege is
|
||||
# True, 0 otherwise
|
||||
if kb.dbms == "PostgreSQL" and str(privilege).isdigit():
|
||||
if kb.dbms == "PostgreSQL" and unicode(privilege).isdigit():
|
||||
for position, pgsqlPriv in pgsqlPrivs:
|
||||
if count == position and int(privilege) == 1:
|
||||
privileges.add(pgsqlPriv)
|
||||
|
|
@ -1058,7 +1058,7 @@ class Enumeration:
|
|||
else:
|
||||
colEntry = entry[index]
|
||||
|
||||
colEntryLen = len(str(colEntry))
|
||||
colEntryLen = len(unicode(colEntry))
|
||||
maxLen = max(colLen, colEntryLen)
|
||||
|
||||
if maxLen > kb.data.dumpedTable[column]["length"]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue