From 2ee198a3813d9a7ec809dd7e5aa91e7ba7acafdd Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Feb 2012 11:00:01 +0000 Subject: [PATCH] minor "patch" --- lib/techniques/union/use.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index dca6f7826..0158e9cc8 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -251,7 +251,7 @@ def unionUse(expression, unpack=True, dump=False): infoMsg += "%d entries" % stopLimit logger.info(infoMsg) - elif count and not count.isdigit(): + elif not isinstance(count, basestring) or count and not count.isdigit(): warnMsg = "it was not possible to count the number " warnMsg += "of entries for the SQL query provided. " warnMsg += "sqlmap will assume that it returns only " @@ -260,7 +260,7 @@ def unionUse(expression, unpack=True, dump=False): stopLimit = 1 - elif (not count or int(count) == 0): + elif not count or int(count) == 0: if not count: warnMsg = "the SQL query provided does not " warnMsg += "return any output"