From 42f4c2bac9c0aacd9ad03f9418529c142d98111e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 10 Dec 2012 11:42:10 +0100 Subject: [PATCH] Minor fix when --dbms is enforced --- lib/controller/checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index f20afc78b..4413d7543 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -188,7 +188,7 @@ def checkSqlInjection(place, parameter, value): logger.debug(debugMsg) continue - if len(Backend.getErrorParsedDBMSes()) > 0 and not intersect(dbms, Backend.getErrorParsedDBMSes()) and kb.skipOthersDbms is None: + if conf.dbms is None and len(Backend.getErrorParsedDBMSes()) > 0 and not intersect(dbms, Backend.getErrorParsedDBMSes()) and kb.skipOthersDbms is None: msg = "parsed error message(s) showed that the " msg += "back-end DBMS could be %s. " % Format.getErrorParsedDBMSes() msg += "Do you want to skip test payloads specific for other DBMSes? [Y/n]"