1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 05:00:19 -05:00

[pm-10860] Fix provider name encoding issue. (#5244)

Prevent double encoding, as Handlebars encode strings by default.
This commit is contained in:
Jimmy Vo 2025-01-10 13:43:58 -05:00 committed by GitHub
parent 45d2c5315d
commit 904692a9b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -863,7 +863,7 @@ public class HandlebarsMailService : IMailService
var message = CreateDefaultMessage($"Join {providerName}", email);
var model = new ProviderUserInvitedViewModel
{
ProviderName = CoreHelpers.SanitizeForEmail(providerName),
ProviderName = CoreHelpers.SanitizeForEmail(providerName, false),
Email = WebUtility.UrlEncode(providerUser.Email),
ProviderId = providerUser.ProviderId.ToString(),
ProviderUserId = providerUser.Id.ToString(),