Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to prevent autolinking of displaynames by email readers (#19169) #19183

Merged
merged 1 commit into from
Mar 23, 2022

Commits on Mar 23, 2022

  1. Try to prevent autolinking of displaynames by email readers (go-gitea…

    …#19169)
    
    Backport go-gitea#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>
    zeripath committed Mar 23, 2022
    Configuration menu
    Copy the full SHA
    459eea2 View commit details
    Browse the repository at this point in the history