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

Skip to content

Commit 6c80f29

Browse files
committed
Patch for an Issue #564
1 parent 1780569 commit 6c80f29

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def checkSqlInjection(place, parameter, value):
322322

323323
# Threat the parameter original value according to the
324324
# test's <where> tag
325-
if where == PAYLOAD.WHERE.ORIGINAL:
325+
if where == PAYLOAD.WHERE.ORIGINAL or conf.prefix:
326326
origValue = value
327327
elif where == PAYLOAD.WHERE.NEGATIVE:
328328
# Use different page template than the original

lib/core/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
108108
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]
109109
origValue = origValue[origValue.index(',') + 1:]
110110

111+
if conf.prefix:
112+
value = origValue
113+
111114
if value is None:
112115
if where == PAYLOAD.WHERE.ORIGINAL:
113116
value = origValue

0 commit comments

Comments
 (0)