From 034e123b0c969181abcaf82e3641022504d4c0ff Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 12 May 2013 16:24:13 +0200 Subject: [PATCH] Minor fix (to accept -p cookie without need for raising --level / as it's already done for referer and user_agent) --- lib/controller/controller.py | 1 + lib/core/common.py | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index e9930ea61..ebd637181 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -406,6 +406,7 @@ def start(): skip &= not (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.testParameter, True)) skip &= not (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.testParameter, True)) skip &= not (place == PLACE.HOST and intersect(HOST_ALIASES, conf.testParameter, True)) + skip &= not (place == PLACE.COOKIE and intersect((PLACE.COOKIE,), conf.testParameter, True)) if skip: continue diff --git a/lib/core/common.py b/lib/core/common.py index 52c4541eb..3ae3cb531 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -545,6 +545,7 @@ def paramToDict(place, parameters=None): condition = not conf.testParameter condition |= parameter in conf.testParameter + condition |= place == PLACE.COOKIE and len(intersect((PLACE.COOKIE,), conf.testParameter, True)) > 0 if condition: testableParameters[parameter] = "=".join(parts[1:])