mirror of https://github.com/daffainfo/nuclei.git
Merge branch 'fix-default-matchers-condition' of github.com:manuelbua/nuclei into manuelbua-fix-default-matchers-condition
commit
e25ee652c0
|
@ -35,7 +35,7 @@ func Parse(file string) (*Template, error) {
|
|||
// Get the condition between the matchers
|
||||
condition, ok := matchers.ConditionTypes[request.MatchersCondition]
|
||||
if !ok {
|
||||
request.SetMatchersCondition(matchers.ANDCondition)
|
||||
request.SetMatchersCondition(matchers.ORCondition)
|
||||
} else {
|
||||
request.SetMatchersCondition(condition)
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ func Parse(file string) (*Template, error) {
|
|||
// Get the condition between the matchers
|
||||
condition, ok := matchers.ConditionTypes[request.MatchersCondition]
|
||||
if !ok {
|
||||
request.SetMatchersCondition(matchers.ANDCondition)
|
||||
request.SetMatchersCondition(matchers.ORCondition)
|
||||
} else {
|
||||
request.SetMatchersCondition(condition)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue