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

Skip to content

Commit 08bf8c2

Browse files
committed
few minor fixes
1 parent bc4dd7c commit 08bf8c2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/THANKS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ fufuh <[email protected]>
633633
for reporting a bug when running on Windows
634634

635635
Hans Wurst <[email protected]>
636-
for reporting a bug
636+
for reporting a couple of bugs
637637

638638
639639
for reporting a bug

plugins/generic/enumeration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def getPrivileges(self, query2=False):
572572
count = inject.getValue(query, inband=False, error=False, expected=EXPECTED.INT, charsetType=2)
573573

574574
if not isNumPosStrValue(count):
575-
if not (isinstance(count, basestring) and count.isdigit()) and Backend.isDbms(DBMS.ORACLE) and not query2:
575+
if Backend.isDbms(DBMS.ORACLE) and not query2:
576576
infoMsg = "trying with table USER_SYS_PRIVS"
577577
logger.info(infoMsg)
578578

@@ -1320,7 +1320,7 @@ def __tableGetCount(self, db, table):
13201320

13211321
count = inject.getValue(query, expected=EXPECTED.INT, charsetType=2)
13221322

1323-
if count is not None and isinstance(count, basestring) and count.isdigit():
1323+
if isNumPosStrValue(count):
13241324
if safeSQLIdentificatorNaming(db) not in kb.data.cachedCounts:
13251325
kb.data.cachedCounts[safeSQLIdentificatorNaming(db)] = {}
13261326

@@ -1672,7 +1672,7 @@ def dumpTable(self, foundData=None):
16721672
lengths = {}
16731673
entries = {}
16741674

1675-
if count == "0":
1675+
if count == 0:
16761676
warnMsg = "table '%s' " % unsafeSQLIdentificatorNaming(tbl)
16771677
warnMsg += "on database '%s' " % unsafeSQLIdentificatorNaming(conf.db)
16781678
warnMsg += "appears to be empty"

0 commit comments

Comments
 (0)