This commit is contained in:
Miroslav Stampar
2018-12-10 15:22:53 +01:00
parent a02662f03f
commit 2e5edce8b9
3 changed files with 4 additions and 4 deletions

View File

@@ -505,7 +505,7 @@ def start():
infoMsg = "skipping %s parameter '%s'" % (paramType, parameter)
logger.info(infoMsg)
elif re.search(conf.csrfToken, parameter, re.I):
elif conf.csrfToken and re.search(conf.csrfToken, parameter, re.I):
testSqlInj = False
infoMsg = "skipping anti-CSRF token parameter '%s'" % parameter