From 3fd5119f3fec37e098675726d80ec9d54262d6e2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 12 Jul 2012 13:42:22 +0200 Subject: [PATCH] Redesigning for Issue #75 --- lib/core/agent.py | 3 --- plugins/generic/enumeration.py | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 2a2329184..d6aaaab82 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -798,9 +798,6 @@ class Agent: return unescaper.unescape(lengthExpr) - def forgeQueryOutputLengthZero(self, expression): - return self.forgeCaseStatement(self.forgeQueryOutputLength(expression)) - def forgeCaseStatement(self, expression): """ Take in input a query string and return its CASE statement query diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 0e06a0c4e..3610086d8 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1743,11 +1743,7 @@ class Enumeration: elif Backend.isDbms(DBMS.FIREBIRD): query = rootQuery.blind.query % (index, column, tbl) - # Skip enumeration of cells that have a value length of 0 - if not inject.checkBooleanExpression(agent.forgeQueryOutputLengthZero(query)): - logger.debug("column '%s', entry %d is blank" % (column, index+1)) - else: - value = inject.getValue(query, inband=False, error=False, dump=True) + value = inject.getValue(query, inband=False, error=False, dump=True) lengths[column] = max(lengths[column], len(value) if value else 0) entries[column].append(value)