dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
39.25k stars 1.9k forks source link

Fix org invite url being html encoded #5100

Closed BlackDex closed 1 month ago

BlackDex commented 1 month ago

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