#18206: User name in comments is escaped twice

Work Item: 18206

--HG--
branch : 1.x
This commit is contained in:
piedone
2011-11-15 15:29:17 -08:00
parent 679e4fed3d
commit 112244b0cd

View File

@@ -55,7 +55,7 @@ using (Html.BeginForm("Create", "Comment", new { area = "Orchard.Comments" }, Fo
@Html.Hidden("Email", WorkContext.CurrentUser.Email ?? "")
}
<h2 id="commenter">@if (WorkContext.CurrentUser != null) { @T("Hi, {0}!", Html.Encode(WorkContext.CurrentUser.UserName))}</h2>
<h2 id="commenter">@if (WorkContext.CurrentUser != null) { @T("Hi, {0}!", WorkContext.CurrentUser.UserName)}</h2>
<fieldset class="what">
<ol>
<li>