proper fix related to the last commit

This commit is contained in:
Miroslav Stampar
2011-06-01 23:00:18 +00:00
parent fd57aae779
commit 8aa5625cd0
3 changed files with 11 additions and 5 deletions

View File

@@ -440,7 +440,7 @@ def checkSqlInjection(place, parameter, value):
if not isinstance(dValue, list):
injection.dbms = Backend.setDbms(dValue)
else:
Backend.forceDbms(dValue[0])
Backend.forceDbms(dValue[0], True)
elif dKey == "dbms_version" and injection.dbms_version is None:
injection.dbms_version = Backend.setVersion(dValue)
elif dKey == "os" and injection.os is None:
@@ -497,6 +497,8 @@ def checkSqlInjection(place, parameter, value):
# Reset forced back-end DBMS value
Backend.flushForcedDbms()
Backend.flushForcedDbms(True)
# Return the injection object
if injection.place is not None and injection.parameter is not None:
injection = checkFalsePositives(injection)