Merge branch 'fix-default-matchers-condition' of github.com:manuelbua/nuclei into manuelbua-fix-default-matchers-condition

dev
Mzack9999 2020-07-06 20:48:31 +02:00
commit e25ee652c0
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func Parse(file string) (*Template, error) {
// Get the condition between the matchers // Get the condition between the matchers
condition, ok := matchers.ConditionTypes[request.MatchersCondition] condition, ok := matchers.ConditionTypes[request.MatchersCondition]
if !ok { if !ok {
request.SetMatchersCondition(matchers.ANDCondition) request.SetMatchersCondition(matchers.ORCondition)
} else { } else {
request.SetMatchersCondition(condition) request.SetMatchersCondition(condition)
} }
@ -73,7 +73,7 @@ func Parse(file string) (*Template, error) {
// Get the condition between the matchers // Get the condition between the matchers
condition, ok := matchers.ConditionTypes[request.MatchersCondition] condition, ok := matchers.ConditionTypes[request.MatchersCondition]
if !ok { if !ok {
request.SetMatchersCondition(matchers.ANDCondition) request.SetMatchersCondition(matchers.ORCondition)
} else { } else {
request.SetMatchersCondition(condition) request.SetMatchersCondition(condition)
} }