From ad2e4002eaddc201a1dff6bb99cbdc78834f5d4a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 1 Mar 2011 10:38:27 +0000 Subject: [PATCH] minor improvement --- lib/core/session.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/session.py b/lib/core/session.py index a846fe51c..49e424304 100644 --- a/lib/core/session.py +++ b/lib/core/session.py @@ -165,6 +165,9 @@ def resumeConfKb(expression, url, value): injection.parameter in conf.paramDict[injection.place]: if not conf.technique or intersect(conf.technique, injection.data.keys()): + if intersect(conf.technique, injection.data.keys()): + injection.data = dict(filter(lambda (key, item): key in conf.technique, injection.data.items())) + if injection not in kb.injections: kb.injections.append(injection) else: