mirror of https://github.com/daffainfo/nuclei.git
Merge branch 'manuelbua-fix-default-matchers-condition'
commit
3e075768ad
|
@ -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