From 401763b6f8fe742d3e28ace10279618748ebb728 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 19 Mar 2012 12:00:22 +0000 Subject: [PATCH] minor fix (it has to be level 1 array like it was with the previous re.findall mechanism) --- lib/techniques/union/use.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index fdad01d21..52ecfde8b 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -13,6 +13,7 @@ import time from extra.safe2bin.safe2bin import safecharencode from lib.core.agent import agent from lib.core.bigarray import BigArray +from lib.core.common import arrayizeValue from lib.core.common import Backend from lib.core.common import calculateDeltaSeconds from lib.core.common import clearConsoleLine @@ -30,6 +31,7 @@ from lib.core.common import listToStrValue from lib.core.common import parseUnionPage from lib.core.common import removeReflectiveValues from lib.core.common import singleTimeWarnMessage +from lib.core.common import unArrayizeValue from lib.core.common import wasLastRequestDBMSError from lib.core.convert import htmlunescape from lib.core.data import conf @@ -306,7 +308,7 @@ def unionUse(expression, unpack=True, dump=False): items = parseUnionPage(output) if isNoneValue(items): continue - items = items[0] if isinstance(items, list) and len(items) == 1 else items + items = arrayizeValue(unArrayizeValue(items)) kb.locks.value.acquire() threadData.shared.value.append(items[0] if len(items) == 1 else items) kb.locks.value.release()