From 694b14111fea8daa7cb78c28722ec0b457032c1c Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 27 Apr 2012 13:16:51 +0000 Subject: [PATCH] skipping suffix if comment is used in agent.suffixQuery (and --suffix not explicitly set) --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 699ef9afb..a0f0d6018 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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)