minor fix

This commit is contained in:
Miroslav Stampar 2012-05-09 14:00:07 +00:00
parent 56a3431be6
commit 9fa3619262

View File

@ -88,6 +88,8 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
# Special case when DBMS is Microsoft SQL Server and error message is used as a result of inband injection
if Backend.isDbms(DBMS.MSSQL) and wasLastRequestDBMSError():
retVal = htmlunescape(retVal).replace("<br>", "\n")
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)
else:
trimmed = extractRegexResult(trimcheck, removeReflectiveValues(page, payload), re.DOTALL | re.IGNORECASE) \
or extractRegexResult(trimcheck, removeReflectiveValues(listToStrValue(headers.headers \
@ -98,8 +100,6 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
warnMsg += trimmed
logger.warn(warnMsg)
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)
return retVal
def configUnion(char=None, columns=None):