mirror of https://github.com/daffainfo/nuclei.git
Merge pull request #924 from savushkin-yauheni/pitchfork-validation-fix
fixed pitchfork validationdev
commit
6e45e29995
|
@ -49,10 +49,10 @@ func New(payloads map[string]interface{}, payloadType Type, templatePath string)
|
|||
if payloadType == PitchFork {
|
||||
var totalLength int
|
||||
for v := range compiled {
|
||||
if totalLength != 0 && totalLength != len(v) {
|
||||
if totalLength != 0 && totalLength != len(compiled[v]) {
|
||||
return nil, errors.New("pitchfork payloads must be of equal number")
|
||||
}
|
||||
totalLength = len(v)
|
||||
totalLength = len(compiled[v])
|
||||
}
|
||||
}
|
||||
return generator, nil
|
||||
|
|
Loading…
Reference in New Issue