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
|
// 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue