From 81b5bef55a10c59e43987ad4df291b104c69d771 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 918a6523b..2973b2c93 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, }} }