trivial code cleanup

This commit is contained in:
Bernardo Damele 2015-02-21 13:12:30 +00:00
parent 383929c0c2
commit 475cc8b24b
2 changed files with 4 additions and 4 deletions

View File

@ -277,8 +277,8 @@ def checkSqlInjection(place, parameter, value):
infoMsg = "testing '%s'" % title
logger.info(infoMsg)
# Force back-end DBMS according to the current
# test value for proper payload unescaping
# Force back-end DBMS according to the current test DBMS value
# for proper payload unescaping
Backend.forceDbms(dbms[0] if isinstance(dbms, list) else dbms)
# Parse test's <request>

View File

@ -462,9 +462,9 @@ class Backend:
elif Backend.getForcedDbms() is not None:
dbms = Backend.getForcedDbms()
elif Backend.getDbms() is not None:
dbms = kb.dbms
dbms = Backend.getDbms()
elif conf.get("dbms"):
dbms = conf.dbms
dbms = conf.get("dbms")
elif Backend.getErrorParsedDBMSes():
dbms = unArrayizeValue(Backend.getErrorParsedDBMSes())
elif kb.get("injection") and kb.injection.dbms: