From: John Olheiser Date: Wed, 26 Aug 2020 15:12:09 +0000 (-0500) Subject: Escape Email in forgot_password.tmpl (#12610) (#12612) X-Git-Tag: v1.12.4~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=981216c9fe51f8493c0ed648224b460e94582791;p=gitea.git Escape Email in forgot_password.tmpl (#12610) (#12612) Signed-off-by: Andrew Thornton Co-authored-by: zeripath --- diff --git a/templates/user/auth/forgot_passwd.tmpl b/templates/user/auth/forgot_passwd.tmpl index 1e061763a5..111e42a3df 100644 --- a/templates/user/auth/forgot_passwd.tmpl +++ b/templates/user/auth/forgot_passwd.tmpl @@ -10,7 +10,7 @@
{{template "base/alert" .}} {{if .IsResetSent}} -

{{.i18n.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives | Str2html}}

+

{{.i18n.Tr "auth.reset_password_mail_sent_prompt" (Escape .Email) .ResetPwdCodeLives | Str2html}}

{{else if .IsResetRequest}}