Skip to content

Commit

Permalink
SAK-40837 - Distorted course names in favorite bar (sakaiproject#6179)
Browse files Browse the repository at this point in the history
  • Loading branch information
smzse authored and bjones86 committed Oct 25, 2018
1 parent ae12d8e commit 9b3cb59
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9b3cb59

Please sign in to comment.