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

Skip to content

Commit 07afcd5

Browse files
committed
fix for a bug reported by Ahmed Shawky (when user uses --suffix intermixing test default comments with the provided suffix is a big no no)
1 parent 07c3d4f commit 07afcd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/controller/checks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def checkSqlInjection(place, parameter, value):
219219
Backend.forceDbms(dbms[0] if isinstance(dbms, list) else dbms)
220220

221221
# Parse test's <request>
222-
comment = agent.getComment(test.request)
222+
comment = agent.getComment(test.request) if len(conf.boundaries) > 1 else None
223223
fstPayload = agent.cleanupPayload(test.request.payload, origValue=value)
224224

225225
for boundary in conf.boundaries:

0 commit comments

Comments
 (0)