Co-authored-by: zeripath <art27@cantab.net>release/v1.15
parent
9340269d84
commit
f572fb906f
|
@ -390,6 +390,7 @@ func NewFuncMap() []template.FuncMap {
|
||||||
html += "</span>"
|
html += "</span>"
|
||||||
return template.HTML(html)
|
return template.HTML(html)
|
||||||
},
|
},
|
||||||
|
"QueryEscape": url.QueryEscape,
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -510,6 +511,7 @@ func NewTextFuncMap() []texttmpl.FuncMap {
|
||||||
}
|
}
|
||||||
return sum
|
return sum
|
||||||
},
|
},
|
||||||
|
"QueryEscape": url.QueryEscape,
|
||||||
}}
|
}}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
|
<title>{{.i18n.Tr "mail.activate_email.title" .DisplayName}}</title>
|
||||||
</head>
|
</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>
|
<body>
|
||||||
<p>{{.i18n.Tr "mail.hi_user_x" .DisplayName | Str2html}}</p><br>
|
<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>
|
<p>{{.i18n.Tr "mail.activate_email.text" .ActiveCodeLives | Str2html}}</p><p><a href="{{$activate_url}}">{{$activate_url}}</a></p><br>
|
||||||
|
|
Loading…
Reference in New Issue