1
1
mirror of https://github.com/go-gitea/gitea synced 2024-10-31 23:34:25 +00:00

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>
This commit is contained in:
Andrew Thornton 2022-03-23 16:08:27 +00:00
parent 0eff23dae0
commit 81b5bef55a
No known key found for this signature in database
GPG Key ID: 3CDE74631F13A748

View File

@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap {
}, },
"Join": strings.Join, "Join": strings.Join,
"QueryEscape": url.QueryEscape, "QueryEscape": url.QueryEscape,
"DotEscape": DotEscape,
}} }}
} }