diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 7919586359..61d926ee8a 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -498,6 +498,7 @@ func NewTextFuncMap() []texttmpl.FuncMap { } return sum }, + "QueryEscape": url.QueryEscape, }} } diff --git a/templates/mail/auth/activate_email.tmpl b/templates/mail/auth/activate_email.tmpl index 6a8de50112..a1d7ec37ec 100644 --- a/templates/mail/auth/activate_email.tmpl +++ b/templates/mail/auth/activate_email.tmpl @@ -5,7 +5,7 @@
{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}
{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}