mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
[PR #5100] [MERGED] Fix org invite url being html encoded #2658
Reference in New Issue
Block a user
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/dani-garcia/vaultwarden/pull/5100
Author: @BlackDex
Created: 10/18/2024
Status: ✅ Merged
Merged: 10/18/2024
Merged by: @dani-garcia
Base:
main← Head:fix-invite-url-template📝 Commits (1)
866b119Fix org invite url being html encoded📊 Changes
3 files changed (+5 additions, -6 deletions)
View changed files
📝
src/api/core/organizations.rs(+3 -4)📝
src/static/templates/email/send_org_invite.hbs(+1 -1)📝
src/static/templates/email/send_org_invite.html.hbs(+1 -1)📄 Description
Ever since we changed to pass the full url as a template value handlebars now html-encodes this. This causes issues with the plain/text mails, but it also could potentially cause issues with the text/html templates.
This PR encloses the template values inside triple braces
{{{ }}}which prevents html-encoding. Since the URL is generated via theurlcrate the values are percent-encoded anyway.Fixes #5097
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.