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 9340269 commit 59d0e65Copy full SHA for 59d0e65
modules/templates/helper.go
@@ -510,6 +510,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
510
}
511
return sum
512
},
513
+ "QueryEscape": url.QueryEscape,
514
}}
515
516
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