Skip to content

Commit

Permalink
SAK-31275 Escape siteId to avoid problems with + (sakaiproject#2692)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjmerono authored and steveswinsburg committed May 30, 2016
1 parent db76f80 commit 390ba17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roster2/src/webapp/js/roster.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@

members.forEach(function (m) {

m.formattedProfileUrl = "/direct/profile/" + m.userId + "/formatted?siteId=" + roster.siteId;
m.formattedProfileUrl = "/direct/profile/" + m.userId + "/formatted?siteId=" + encodeURIComponent(roster.siteId);
m.profileImageUrl = "/direct/profile/" + m.userId + "/image";
if (options.forceOfficialPicture) {
m.profileImageUrl += "/official";
}
m.profileImageUrl += "?siteId=" + roster.siteId;
m.profileImageUrl += "?siteId=" + encodeURIComponent(roster.siteId);
var groupIds = Object.keys(m.groups);
m.hasGroups = groupIds.length > 0;

Expand Down

0 comments on commit 390ba17

Please sign in to comment.