Major bug fix to comparison algorithm with OR based boolean-based injections

This commit is contained in:
Bernardo Damele 2012-03-16 17:22:55 +00:00
parent d66056fe39
commit a1c943fc79

View File

@ -56,7 +56,7 @@ def comparison(page, headers, code=None, getRatioValue=False, pageLength=None):
if page: if page:
# In case of an DBMS error page return None # In case of an DBMS error page return None
if kb.errorIsNone and (wasLastRequestDBMSError() or wasLastRequestHTTPError()): if not kb.negativeLogic and kb.errorIsNone and (wasLastRequestDBMSError() or wasLastRequestHTTPError()):
return None return None
# Dynamic content lines to be excluded before comparison # Dynamic content lines to be excluded before comparison