perf(replay): threats-only by default, no duplicate first-page or summary fetch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
19bec553f4
commit
91cdb4acbf
12 files changed
+111
-23
No files matched your search
@@ -54,7 +54,12 @@ func (s *Server) eventFilter(w http.ResponseWriter, r *http.Request, defaultSpan
|
||||
eq.IP = ip
|
||||
}
|
||||
if cats := q.Get("cat"); cats != "" {
|
||||
for _, c := range strings.Split(cats, ",") {
|
||||
if len(cats) > 100 {
|
||||
badRequest(w, "invalid cat")
|
||||
return eq, false
|
||||
}
|
||||
// a leading "!" excludes the listed categories instead of selecting them ("!ok" is every threat)
|
||||
for _, c := range strings.Split(strings.TrimPrefix(cats, "!"), ",") {
|
||||
if core.Category(c).Index() < 0 {
|
||||
badRequest(w, "invalid cat")
|
||||
return eq, false
|
||||
|
||||
Reference in new issue
Block a user