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

Commit dfdc7d3

Browse files
committed
move quote above of filters range
1 parent 6c76619 commit dfdc7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/teler/teler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func Analyze(options *common.Options, logs *gonx.Entry) (bool, map[string]string
5252
if err != nil {
5353
continue
5454
}
55+
quote := regexp.QuoteMeta(dec)
5556

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

6666
match = matchers.IsMatch(
6767
string(v.GetStringBytes("rule")),

0 commit comments

Comments
 (0)