Skip to content

Commit 985a572

Browse files
Merge pull request #12 from pierrick-fonquerne/fix/email-templates-htmlencode
fix(email): use WebUtility.HtmlEncode instead of HttpUtility
2 parents fab1e11 + 279c2c5 commit 985a572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/src/FantasyRealm.Infrastructure/Email/EmailTemplates.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Web;
1+
using System.Net;
22

33
namespace FantasyRealm.Infrastructure.Email
44
{
@@ -141,7 +141,7 @@ public static string GetAccountSuspendedTemplate(string pseudo, string reason)
141141

142142
private static string Encode(string value)
143143
{
144-
return HttpUtility.HtmlEncode(value);
144+
return WebUtility.HtmlEncode(value);
145145
}
146146

147147
private static string WrapInLayout(string content)

0 commit comments

Comments
 (0)