From 50e61dbfdf41296b9e4cd54bea30104dc29ced69 Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Tue, 24 Feb 2015 05:29:51 +0400 Subject: [PATCH] wsp-10319 User notes do not render html code --- .../WebsitePanel/UserControls/EditItemComments.ascx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/EditItemComments.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/EditItemComments.ascx.cs index 16def0cd..65843410 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/EditItemComments.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/EditItemComments.ascx.cs @@ -125,7 +125,7 @@ namespace WebsitePanel.Portal public string WrapComment(string text) { - return (text != null) ? PortalAntiXSS.EncodeOld(text.Replace("\n", "
")) : text; + return (text != null) ? Server.HtmlEncode(text).Replace("\n", "
") : text; } protected void gvComments_RowDeleting(object sender, GridViewDeleteEventArgs e)