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

Fix org invite url being html encoded #5100

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

BlackDex
Copy link
Collaborator

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 the url crate the values are percent-encoded anyway.

Fixes #5097

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 the `url` crate the values are percent-encoded anyway.

Fixes dani-garcia#5097

Signed-off-by: BlackDex <[email protected]>
@dani-garcia dani-garcia merged commit a47b484 into dani-garcia:main Oct 18, 2024
5 checks passed
@BlackDex BlackDex deleted the fix-invite-url-template branch October 27, 2024 14:43
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.

Plain text organization invite URL is broken
2 participants