From 452646be8c18aeced8fb13258ae2c6c931d1332a Mon Sep 17 00:00:00 2001 From: Conner Turnbull <133619638+cturnbull-bitwarden@users.noreply.github.com> Date: Tue, 6 Aug 2024 15:21:04 -0400 Subject: [PATCH] HTML encoding email address when sending trial init email (#4594) --- src/Core/Services/Implementations/HandlebarsMailService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/HandlebarsMailService.cs b/src/Core/Services/Implementations/HandlebarsMailService.cs index f4aa5926dd..2adae6cfc6 100644 --- a/src/Core/Services/Implementations/HandlebarsMailService.cs +++ b/src/Core/Services/Implementations/HandlebarsMailService.cs @@ -82,7 +82,7 @@ public class HandlebarsMailService : IMailService var model = new TrialInitiationVerifyEmail { Token = WebUtility.UrlEncode(token), - Email = email, + Email = WebUtility.UrlEncode(email), WebVaultUrl = _globalSettings.BaseServiceUri.VaultWithHash, SiteName = _globalSettings.SiteName, ProductTier = productTier,