From 95b727e3f1679c6bcc6d03950d7a3ea70aed13ea Mon Sep 17 00:00:00 2001 From: dgoodman-bw <109169446+dgoodman-bw@users.noreply.github.com> Date: Tue, 2 Aug 2022 12:57:56 -0700 Subject: [PATCH] PS-1027 - prevent encoding of the organization name in master password reset email (#2147) --- 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 c48a032b5e..a1cfb61cec 100644 --- a/src/Core/Services/Implementations/HandlebarsMailService.cs +++ b/src/Core/Services/Implementations/HandlebarsMailService.cs @@ -413,7 +413,7 @@ namespace Bit.Core.Services var model = new AdminResetPasswordViewModel() { UserName = GetUserIdentifier(email, userName), - OrgName = CoreHelpers.SanitizeForEmail(orgName), + OrgName = CoreHelpers.SanitizeForEmail(orgName, false), }; await AddMessageContentAsync(message, "AdminResetPassword", model); message.Category = "AdminResetPassword";