Bug for fix comments in case of MsAccess

This commit is contained in:
Miroslav Stampar
2016-05-31 10:24:13 +02:00
parent 6b5c16c22c
commit 21a25c4f00
2 changed files with 2 additions and 2 deletions

View File

@@ -281,7 +281,7 @@ class Agent(object):
where = kb.injection.data[kb.technique].where if where is None else where
comment = kb.injection.data[kb.technique].comment if comment is None else comment
if Backend.getIdentifiedDbms() == DBMS.ACCESS and "--" in (comment or ""):
if Backend.getIdentifiedDbms() == DBMS.ACCESS and any(_ in comment or "" for _ in ("--", GENERIC_SQL_COMMENT)):
comment = queries[DBMS.ACCESS].comment.query
if comment is not None: