Skip to content

Commit 2fa5341

Browse files
authored
Merge pull request #2323 from CoresecSystems/master
Fix the logic used for --param-exclude
2 parents 89bbf52 + 025e9ac commit 2fa5341

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/controller/controller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def start():
470470
infoMsg = "skipping %s parameter '%s'" % (paramType, parameter)
471471
logger.info(infoMsg)
472472

473-
elif re.search(conf.paramExclude or "", parameter, re.I) or kb.postHint and re.search(conf.paramExclude or "", parameter.split(' ')[-1], re.I):
473+
elif conf.paramExclude and (re.search(conf.paramExclude, parameter, re.I) or kb.postHint and re.search(conf.paramExclude, parameter.split(' ')[-1], re.I)):
474474
testSqlInj = False
475475

476476
infoMsg = "skipping %s parameter '%s'" % (paramType, parameter)

0 commit comments

Comments
 (0)