From c92d982ac64a08b0a5cff504c2d9420e5585125b Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Wed, 23 Mar 2022 16:08:27 +0000 Subject: [PATCH] Prevent start panic due to missing DotEscape function Unfortunately #19169 causing a panic at startup in prod mode. This was hidden by dev mode because the templates are compiled dynamically there. The issue is that DotEscape is not in the original FuncMap at the time of compilation which causes a panic. Ref #19169 Signed-off-by: Andrew Thornton --- modules/templates/helper.go | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 918a6523ba2a7..2973b2c93803e 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap { }, "Join": strings.Join, "QueryEscape": url.QueryEscape, + "DotEscape": DotEscape, }} }