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

Better sanitization of team names in invite email #4221

Merged
merged 2 commits into from
Jul 19, 2024
Merged

Conversation

knolleary
Copy link
Member

Description

Email clients like to render things that look like URLs as clickable links. We had taken some precautions against this, but some gaps still remained.

This PR sanitises the team name in the HTML email by inserting invisible <br> elements after any ..

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.64%. Comparing base (abc5b7e) to head (dee6e09).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4221   +/-   ##
=======================================
  Coverage   78.63%   78.64%           
=======================================
  Files         286      286           
  Lines       13117    13119    +2     
  Branches     2933     2934    +1     
=======================================
+ Hits        10315    10317    +2     
  Misses       2802     2802           
Flag Coverage Δ
backend 78.64% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@cstns cstns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good:
image

@cstns cstns merged commit 3e503fe into main Jul 19, 2024
12 of 13 checks passed
@cstns cstns deleted the fix-email-link-injection branch July 19, 2024 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants