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

Skip to content

Commit 58ad2f1

Browse files
committed
Revert of last commit and proper fix
1 parent 0e18fa9 commit 58ad2f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/techniques/union/use.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
from lib.core.common import removeReflectiveValues
3232
from lib.core.common import singleTimeDebugMessage
3333
from lib.core.common import singleTimeWarnMessage
34+
from lib.core.common import unArrayizeValue
3435
from lib.core.common import wasLastRequestDBMSError
3536
from lib.core.convert import htmlunescape
3637
from lib.core.data import conf
@@ -86,7 +87,7 @@ def _(regex):
8687
singleTimeWarnMessage(warnMsg)
8788
page = page.replace(kb.chars.stop[:-1], kb.chars.stop)
8889

89-
retVal = _("(?P<result>%s.*?%s)" % (kb.chars.start, kb.chars.stop))
90+
retVal = _("(?P<result>%s.*%s)" % (kb.chars.start, kb.chars.stop))
9091

9192
if retVal is not None:
9293
retVal = getUnicode(retVal, kb.pageEncoding)
@@ -189,7 +190,7 @@ def unionUse(expression, unpack=True, dump=False):
189190
countedExpression = countedExpression[:_]
190191

191192
output = _oneShotUnionUse(countedExpression, unpack)
192-
count = parseUnionPage(output)
193+
count = unArrayizeValue(parseUnionPage(output))
193194

194195
if isNumPosStrValue(count):
195196
if isinstance(stopLimit, int) and stopLimit > 0:

0 commit comments

Comments
 (0)