From f46baac70b8a1d081b25cf5598743fba845a7409 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 17 Aug 2011 10:58:29 +0000 Subject: [PATCH] bug fix (when comment is None this was errornous) --- 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 946bd13b0..3b3978d72 100644 --- a/lib/controller/checks.py +++ b/lib/controller/checks.py @@ -450,7 +450,7 @@ def checkSqlInjection(place, parameter, value): injection.os = Backend.setOs(dValue) if vector is None and "vector" in test and test.vector is not None: - vector = "%s%s" % (test.vector, comment) + vector = "%s%s" % (test.vector, comment or "") injection.data[stype] = AttribDict() injection.data[stype].title = title