Couple of bug fixes

This commit is contained in:
Miroslav Stampar
2021-02-03 11:52:50 +01:00
parent 36ee4d68c7
commit 160011bd87
4 changed files with 26 additions and 21 deletions

View File

@@ -529,7 +529,7 @@ def checkSqlInjection(place, parameter, value):
truePage, trueHeaders, trueCode = threadData.lastComparisonPage or "", threadData.lastComparisonHeaders, threadData.lastComparisonCode
trueRawResponse = "%s%s" % (trueHeaders, truePage)
if trueResult and not(truePage == falsePage and not kb.nullConnection):
if trueResult and not(truePage == falsePage and not any((kb.nullConnection, conf.code))):
# Perform the test's False request
falseResult = Request.queryPage(genCmpPayload(), place, raise404=False)