We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb9c818 commit e69521fCopy full SHA for e69521f
modules/templates/helper.go
@@ -498,6 +498,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
498
}
499
return sum
500
},
501
+ "QueryEscape": url.QueryEscape,
502
}}
503
504
templates/mail/auth/activate_email.tmpl
@@ -5,7 +5,7 @@
5
<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
6
</head>
7
8
-{{ $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)}}
9
<body>
10
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
11
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
0 commit comments