forgejo/modules/templates
zeripath bb0e2121a3
Try to prevent autolinking of displaynames by email readers (#19169) (#19183)
Backport #19169

Unfortunately many email readers will (helpfully) detect url or url-like names and
automatically create links to them, even in HTML emails. This is not ideal when
usernames can have dots in them.

This PR tries to prevent this behaviour by sticking ZWJ characters between dots and
also set the meta tag to prevent format detection.

Not every email template has been changed in this way - just the activation emails but
it may be that we should be setting the above meta tag in all of our emails too.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-23 15:18:11 +02:00
..
base.go Refactor HTTP request context (#17979) 2021-12-15 14:59:57 +08:00
dynamic.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
helper.go Try to prevent autolinking of displaynames by email readers (#19169) (#19183) 2022-03-23 15:18:11 +02:00
helper_test.go Use templates for issue e-mail subject and body (#8329) 2019-11-07 21:34:28 +08:00
static.go Fix various typos (#18219) 2022-01-10 17:32:37 +08:00
templates_bindata.go Remove golang vendored directory (#18277) 2022-01-14 18:16:05 -05:00