aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-08-26 14:47:38 +0100
committerGitHub <noreply@github.com>2020-08-26 08:47:38 -0500
commit69b3dd636201d340ab6bdfa49ed95456a4e5acb7 (patch)
treef1a011d40fba6f3c7435e7e66bfb01f61098758e /templates
parentb611ae19083ef754aac18e55774bcfe39fae137e (diff)
downloadgitea-69b3dd636201d340ab6bdfa49ed95456a4e5acb7.tar.gz
gitea-69b3dd636201d340ab6bdfa49ed95456a4e5acb7.zip
Escape Email in forgot_password.tmpl (#12610)
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/user/auth/forgot_passwd.tmpl2
1 files changed, 1 insertions, 1 deletions
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 @@
<div class="ui attached segment">
{{template "base/alert" .}}
{{if .IsResetSent}}
- <p>{{.i18n.Tr "auth.reset_password_mail_sent_prompt" .Email .ResetPwdCodeLives | Str2html}}</p>
+ <p>{{.i18n.Tr "auth.reset_password_mail_sent_prompt" (Escape .Email) .ResetPwdCodeLives | Str2html}}</p>
{{else if .IsResetRequest}}
<div class="required inline field {{if .Err_Email}}error{{end}}">
<label for="email">{{.i18n.Tr "email"}}</label>