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

Skip to content

Commit 2ee198a

Browse files
committed
minor "patch"
1 parent 2589521 commit 2ee198a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/techniques/union/use.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def unionUse(expression, unpack=True, dump=False):
251251
infoMsg += "%d entries" % stopLimit
252252
logger.info(infoMsg)
253253

254-
elif count and not count.isdigit():
254+
elif not isinstance(count, basestring) or count and not count.isdigit():
255255
warnMsg = "it was not possible to count the number "
256256
warnMsg += "of entries for the SQL query provided. "
257257
warnMsg += "sqlmap will assume that it returns only "
@@ -260,7 +260,7 @@ def unionUse(expression, unpack=True, dump=False):
260260

261261
stopLimit = 1
262262

263-
elif (not count or int(count) == 0):
263+
elif not count or int(count) == 0:
264264
if not count:
265265
warnMsg = "the SQL query provided does not "
266266
warnMsg += "return any output"

0 commit comments

Comments
 (0)