proper fix for that previous "stacked" fix (that one screwed other injection types)

This commit is contained in:
Miroslav Stampar 2011-01-16 19:25:10 +00:00
parent 5476a8a27e
commit a6516798c0

View File

@ -150,12 +150,10 @@ class Agent:
query = kb.injection.prefix
if query is None:
if not kb.injection.prefix and not prefix:
query = ""
elif kb.injection.prefix is None and prefix:
query = "%s " % prefix
else:
query = "%s " % kb.injection.prefix
query = kb.injection.prefix or prefix or ''
if not (string and string[0] == ';'):
query += " "
query = "%s%s" % (query, string)
query = self.cleanupPayload(query)