From 57da830ae5896fc6f3ec966f1563af0be416d6ce Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Thu, 8 Dec 2022 14:43:30 +0100 Subject: [PATCH] use html/template instead of text/template to avoid inyections (#3984) Signed-off-by: Jorge Turrado Signed-off-by: Jorge Turrado --- pkg/scalers/activemq_scaler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/scalers/activemq_scaler.go b/pkg/scalers/activemq_scaler.go index 6bd22c72d25..7fc8a0e6aee 100644 --- a/pkg/scalers/activemq_scaler.go +++ b/pkg/scalers/activemq_scaler.go @@ -6,11 +6,11 @@ import ( "encoding/json" "errors" "fmt" + "html/template" "net/http" "net/url" "strconv" "strings" - "text/template" "github.com/go-logr/logr" v2 "k8s.io/api/autoscaling/v2"