From 112244b0cdc5ae345eb6775c7fc9b0ea323de2b9 Mon Sep 17 00:00:00 2001 From: piedone Date: Tue, 15 Nov 2011 15:29:17 -0800 Subject: [PATCH] #18206: User name in comments is escaped twice Work Item: 18206 --HG-- branch : 1.x --- .../Modules/Orchard.Comments/Views/Parts.Comments.cshtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.cshtml b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.cshtml index 3efae34df..eda8ee05c 100644 --- a/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Comments/Views/Parts.Comments.cshtml @@ -55,7 +55,7 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo @Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "") } -

@if (WorkContext.CurrentUser != null) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}

+

@if (WorkContext.CurrentUser != null) { @T("Hi, {0}!", WorkContext.CurrentUser.UserName)}