From dfdc7d3318074235b43fba30eb05eecbddd911c9 Mon Sep 17 00:00:00 2001
From: Dwi Siswanto <me@dw1.io>
Date: Sat, 3 Dec 2022 11:55:55 +0700
Subject: [PATCH] move quote above of filters range

---
 pkg/teler/teler.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/teler/teler.go b/pkg/teler/teler.go
index ef50dd39..3a332ed9 100644
--- a/pkg/teler/teler.go
+++ b/pkg/teler/teler.go
@@ -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
@@ -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")),