From fd57aae7799cda1f6a2d4d2221b9cf87653176bf Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 1 Jun 2011 22:47:54 +0000 Subject: [PATCH] bug fix (until this moment we had UNION unfunctional for MSSQL) --- lib/controller/checks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/controller/checks.py b/lib/controller/checks.py index 81a363f0c..7ee0597de 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -436,8 +436,11 @@ def checkSqlInjection(place, parameter, value): # Feed with test details every time a test is successful if hasattr(test, "details"): for dKey, dValue in test.details.items(): - if dKey == "dbms" and not isinstance(dValue, list): - injection.dbms = Backend.setDbms(dValue) + if dKey == "dbms": + if not isinstance(dValue, list): + injection.dbms = Backend.setDbms(dValue) + else: + Backend.forceDbms(dValue[0]) elif dKey == "dbms_version" and injection.dbms_version is None: injection.dbms_version = Backend.setVersion(dValue) elif dKey == "os" and injection.os is None: