From 9b3cb59c075f6fb23302188a42ec4c5b195b98ec Mon Sep 17 00:00:00 2001 From: Serdar S Date: Thu, 25 Oct 2018 18:05:18 +0300 Subject: [PATCH] SAK-40837 - Distorted course names in favorite bar (#6179) --- .../portal/charon/site/PortalSiteHelperImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java b/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java index 2fda20a5453a..de4b1e76ec1b 100644 --- a/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java +++ b/portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/site/PortalSiteHelperImpl.java @@ -459,8 +459,9 @@ public Map convertSiteToMap(HttpServletRequest req, Site s, String prefix, && (s.getId().equals(myWorkspaceSiteId) || effectiveSite .equals(myWorkspaceSiteId)))); - String siteTitle = Validator.escapeHtml(getUserSpecificSiteTitle(s, false, false, siteProviders)); - String siteTitleTruncated = FormattedText.makeShortenedText(siteTitle, null, null, null); + String siteTitleRaw = getUserSpecificSiteTitle(s, false, false, siteProviders); + String siteTitle = Validator.escapeHtml(siteTitleRaw); + String siteTitleTruncated = Validator.escapeHtml(FormattedText.makeShortenedText(siteTitleRaw, null, null, null)); m.put("siteTitle", siteTitle); m.put("siteTitleTrunc", siteTitleTruncated); m.put("fullTitle", siteTitle);