aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-02 14:26:13 +0800
committerGitHub <noreply@github.com>2021-11-02 06:26:13 +0000
commite69521f0292a4e4c170d924d6c5708494ccd1b67 (patch)
tree6a4c7ddf3ab32af3e21b7f8622e4521cd501f762 /templates
parentcb9c8184c9b0967e0b0fbc5eeedec4ba3ae4f020 (diff)
downloadgitea-e69521f0292a4e4c170d924d6c5708494ccd1b67.tar.gz
gitea-e69521f0292a4e4c170d924d6c5708494ccd1b67.zip
fix email with + when active (#17518)
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'templates')
-rw-r--r--templates/mail/auth/activate_email.tmpl2
1 files changed, 1 insertions, 1 deletions
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 @@
<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
</head>
-{{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code .Email}}
+{{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code (QueryEscape .Email)}}
<body>
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>