forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #192 from edx/security-fix/fix-xss-edit-member
Fix xss in edit member template
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
14 changes: 7 additions & 7 deletions
14
lms/djangoapps/teams/static/teams/templates/edit-team-member.underscore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<li class="team-member"> | ||
<a class="member-profile" href="<%= memberProfileUrl %>"> | ||
<img class="image-url" src="<%= imageUrl %>" alt="<%= username %>'s profile page" /> | ||
<a class="member-profile" href="<%= memberProfileUrl /* xss-lint: disable=underscore-not-escaped */%>"> | ||
<img class="image-url" src="<%= imageUrl /* xss-lint: disable=underscore-not-escaped */%>" alt="<%= username /* xss-lint: disable=underscore-not-escaped */%>'s profile page" /> | ||
</a> | ||
<div class="member-info-container"> | ||
<span class="primary"><%= username %></span> | ||
<span class="primary"><%= username /* xss-lint: disable=underscore-not-escaped */%></span> | ||
<div class="secondary"> | ||
<span id="date-joined"><%= dateJoined %></span> | ||
<span id="date-joined"><%= dateJoined /* xss-lint: disable=underscore-not-escaped */%></span> | ||
<span> | </span> | ||
<span id="last-active"><%= lastActive %></span> | ||
<span id="last-active"><%= lastActive /* xss-lint: disable=underscore-not-escaped */%></span> | ||
</div> | ||
</div> | ||
<button class="action-remove-member" data-username="<%= username %>"> | ||
<%- gettext("Remove") %><span class="sr"> <%= username %></span> | ||
<button class="action-remove-member" data-username="<%= username /* xss-lint: disable=underscore-not-escaped */%>"> | ||
<%- gettext("Remove") %><span class="sr"> <%= username /* xss-lint: disable=underscore-not-escaped */%></span> | ||
</button> | ||
</li> |