Skip to content

Commit 81b5bef

Browse files
committed
Prevent start panic due to missing DotEscape function
Unfortunately go-gitea#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 go-gitea#19169 Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 0eff23d commit 81b5bef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/templates/helper.go

+1
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap {
379379
},
380380
"Join": strings.Join,
381381
"QueryEscape": url.QueryEscape,
382+
"DotEscape": DotEscape,
382383
}}
383384
}
384385

0 commit comments

Comments
 (0)