#18798: Fixing double enconding for AdminMenuPart

Work Item: 18798
This commit is contained in:
styx31 2012-07-11 11:24:49 -07:00
parent e04cba683f
commit a7f0494ae0

View File

@ -25,7 +25,7 @@ namespace Orchard.Core.Navigation.Services {
if (menuPart != null) {
var part = menuPart;
builder.Add(new LocalizedString(HttpUtility.HtmlEncode(part.AdminMenuText)),
builder.Add(new LocalizedString(part.AdminMenuText),
part.AdminMenuPosition,
item => item.Action(_contentManager.GetItemMetadata(part.ContentItem).AdminRouteValues));
// todo: somehow determine if they will ultimately have rights to the destination and hide if not. possibly would need to add a Permission to metadata.