minor bug fix

This commit is contained in:
Miroslav Stampar 2010-12-21 22:35:44 +00:00
parent f905adb7c1
commit 09479c85dc

View File

@ -294,7 +294,8 @@ def resumeConfKb(expression, url, value):
logMsg = "resuming injection data from session file" logMsg = "resuming injection data from session file"
logger.info(logMsg) logger.info(logMsg)
if injection.parameter in conf.paramDict[injection.place]: if injection.place in conf.paramDict and\
injection.parameter in conf.paramDict[injection.place]:
kb.injections.append(injection) kb.injections.append(injection)
else: else:
warnMsg = "there is an injection in %s parameter '%s' " % (injection.place, injection.parameter) warnMsg = "there is an injection in %s parameter '%s' " % (injection.place, injection.parameter)