File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -390,6 +390,7 @@ func NewFuncMap() []template.FuncMap {
390
390
html += "</span>"
391
391
return template .HTML (html )
392
392
},
393
+ "QueryEscape" : url .QueryEscape ,
393
394
}}
394
395
}
395
396
@@ -510,6 +511,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
510
511
}
511
512
return sum
512
513
},
514
+ "QueryEscape" : url .QueryEscape ,
513
515
}}
514
516
}
515
517
Original file line number Diff line number Diff line change 5
5
<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
6
6
</head>
7
7
8
- {{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code .Email}}
8
+ {{ $activate_url := printf "%suser/activate_email?code=%s&email=%s" AppUrl .Code (QueryEscape .Email) }}
9
9
<body>
10
10
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
11
11
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
You can’t perform that action at this time.
0 commit comments