1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/modules/templates
zeripath 5248232c44
Try to prevent autolinking of displaynames by email readers (#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 12:34:20 +00:00
..
base.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
dynamic.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
helper_test.go Use templates for issue e-mail subject and body (#8329) 2019-11-07 21:34:28 +08:00
helper.go Try to prevent autolinking of displaynames by email readers (#19169) 2022-03-23 12:34:20 +00:00
static.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
templates_bindata.go Remove golang vendored directory (#18277) 2022-01-14 18:16:05 -05:00