Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
move quote above of filters range
Browse files Browse the repository at this point in the history
  • Loading branch information
dwisiswant0 committed Dec 3, 2022
1 parent 6c76619 commit dfdc7d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/teler/teler.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func Analyze(options *common.Options, logs *gonx.Entry) (bool, map[string]string
if err != nil {
continue
}
quote := regexp.QuoteMeta(dec)

if isWhitelist(options, p+"="+dec) {
continue
Expand All @@ -61,7 +62,6 @@ func Analyze(options *common.Options, logs *gonx.Entry) (bool, map[string]string
for _, v := range cwa.GetArray("filters") {
log["category"] = cat + ": " + string(v.GetStringBytes("description"))
log["element"] = "request_uri"
quote := regexp.QuoteMeta(dec)

match = matchers.IsMatch(
string(v.GetStringBytes("rule")),
Expand Down

0 comments on commit dfdc7d3

Please sign in to comment.