Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d1690d

Browse files
committed
Minor fix
1 parent 1e8349e commit 0d1690d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def prefixQuery(self, expression, prefix=None, where=None, clause=None):
185185

186186
# If we are replacing (<where>) the parameter original value with
187187
# our payload do not prepend with the prefix
188-
if where == PAYLOAD.WHERE.REPLACE:
188+
if where == PAYLOAD.WHERE.REPLACE and not conf.prefix:
189189
query = ""
190190

191191
# If the technique is stacked queries (<stype>) do not put a space
@@ -234,7 +234,7 @@ def suffixQuery(self, expression, comment=None, suffix=None, where=None):
234234

235235
# If we are replacing (<where>) the parameter original value with
236236
# our payload do not append the suffix
237-
if where == PAYLOAD.WHERE.REPLACE:
237+
if where == PAYLOAD.WHERE.REPLACE and not conf.suffix:
238238
pass
239239

240240
elif suffix and not comment:

0 commit comments

Comments
 (0)