wip
This commit is contained in:
parent
f7e098047f
commit
2f5a6fbb4f
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ func EventFromRequest(r waf.ParsedRequest) (types.Event, error) {
|
|||
Src: "waf",
|
||||
Raw: "dummy-waf-data", //we discard empty Line.Raw items :)
|
||||
}
|
||||
evt.Waap = []map[string]interface{}{}
|
||||
evt.Waap = types.WaapEvent{}
|
||||
|
||||
return evt, nil
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ func (r *WafRunner) AccumulateTxToEvent(tx experimental.FullTransaction, kind st
|
|||
"msg": rule.Message(),
|
||||
"severity": rule.Rule().Severity().String(),
|
||||
}
|
||||
evt.Waap = append(evt.Waap, corazaRule)
|
||||
evt.Waap.MatchedRules = append(evt.Waap.MatchedRules, corazaRule)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
@ -67,7 +67,7 @@ func (w WaapEvent) GetVar(varName string) string {
|
|||
if w.Vars[parsed[0]] == "" {
|
||||
return ""
|
||||
}
|
||||
return w.Vars[parsed[0]][parsed[1]]
|
||||
//return w.Vars[parsed[0]][parsed[1]]
|
||||
}
|
||||
log.Warningf("invalid variable name %s", varName)
|
||||
return ""
|
||||
|
|
Loading…
Reference in a new issue