skipping suffix if comment is used in agent.suffixQuery (and --suffix not explicitly set)

This commit is contained in:
Miroslav Stampar 2012-04-27 13:16:51 +00:00
parent c7a606637f
commit 694b14111f

View File

@ -199,7 +199,7 @@ class Agent:
if where == PAYLOAD.WHERE.REPLACE:
pass
elif any([kb.injection.suffix, suffix]):
elif any([kb.injection.suffix, suffix]) and not (comment and not conf.suffix):
expression += " %s" % (kb.injection.suffix or suffix)
return re.sub(r"(?s);\W*;", ";", expression)