mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3851] [MERGED] refactor: possible links in email templates do not highlight #4556
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4556
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3851
Author: @AndrewBastin
Created: 2/21/2024
Status: ✅ Merged
Merged: 2/22/2024
Merged by: @AndrewBastin
Base:
release/2023.12.6← Head:fix/email-link-highlighting📝 Commits (3)
3c32b90fix: make it so links in email templates do not highlight4538bb2fix: set the cursor to the default arrowc764cf7chore: change the subject in team invitation📊 Changes
3 files changed (+72 additions, -60 deletions)
View changed files
📝
packages/hoppscotch-backend/src/mailer/mailer.service.ts(+1 -1)📝
packages/hoppscotch-backend/src/mailer/templates/team-invitation.hbs(+8 -2)📝
packages/hoppscotch-backend/src/mailer/templates/user-invitation.hbs(+63 -57)📄 Description
NOTE: This PR is made in response to a moderate security advisory
Goal
If something representable as a site name or something is present in a Team Invitation (which is possible if the team name or the user name contains things which can look like phone numbers, sites or emails), those text should not be converted into links that the user can click through.
Implementation
We wrap around the variable bits in the template in an anchor tag to prevent the Email clients doing it on their end and style it so no UI weirdness happens.
Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.