Skip to content

Commit ea0ec86

Browse files
committed
Fixes #4029
1 parent 424d4ee commit ea0ec86

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/controller/controller.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,18 +456,18 @@ def start():
456456
for place in parameters:
457457
# Test User-Agent and Referer headers only if
458458
# --level >= 3
459-
skip = (place == PLACE.USER_AGENT and conf.level < 3)
460-
skip |= (place == PLACE.REFERER and conf.level < 3)
459+
skip = (place == PLACE.USER_AGENT and (kb.testOnlyCustom or conf.level < 3))
460+
skip |= (place == PLACE.REFERER and (kb.testOnlyCustom or conf.level < 3))
461461

462462
# --param-filter
463463
skip |= (len(conf.paramFilter) > 0 and place.upper() not in conf.paramFilter)
464464

465465
# Test Host header only if
466466
# --level >= 5
467-
skip |= (place == PLACE.HOST and conf.level < 5)
467+
skip |= (place == PLACE.HOST and (kb.testOnlyCustom or conf.level < 5))
468468

469469
# Test Cookie header only if --level >= 2
470-
skip |= (place == PLACE.COOKIE and conf.level < 2)
470+
skip |= (place == PLACE.COOKIE and (kb.testOnlyCustom or conf.level < 2))
471471

472472
skip |= (place == PLACE.USER_AGENT and intersect(USER_AGENT_ALIASES, conf.skip, True) not in ([], None))
473473
skip |= (place == PLACE.REFERER and intersect(REFERER_ALIASES, conf.skip, True) not in ([], None))

0 commit comments

Comments
 (0)