Skip to content

Commit 9c7d8b3

Browse files
committed
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 <art27@cantab.net>
1 parent 93feb1a commit 9c7d8b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/templates/helper.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ func NewFuncMap() []template.FuncMap {
380380
},
381381
"Join": strings.Join,
382382
"QueryEscape": url.QueryEscape,
383+
"DotEscape": DotEscape,
383384
}}
384385
}
385386

0 commit comments

Comments
 (0)