diff --git a/cms/templates/admin/base_site.html b/cms/templates/admin/base_site.html index d050919de3..953b42d2bf 100644 --- a/cms/templates/admin/base_site.html +++ b/cms/templates/admin/base_site.html @@ -7,13 +7,13 @@ {% block nav-global %}{% endblock %} {% block userlinks %} {% if site_url %} - {% trans 'View site' %} / + {% trans 'View site' as tmsg%} {{tmsg|force_escape}} / {% endif %} {% if user.is_active and user.is_staff %} {% url 'django-admindocs-docroot' as docsroot %} {% if docsroot %} - {% trans 'Documentation' %} / + {% trans 'Documentation' as tmsg %} {{tmsg|force_escape}} / {% endif %} {% endif %} - {% trans 'Log out' %} + {% trans 'Log out' as tmsg %} {{tmsg|force_escape}} {% endblock %} diff --git a/lms/djangoapps/teams/static/teams/templates/date.underscore b/lms/djangoapps/teams/static/teams/templates/date.underscore index dcf5083f62..12ef50cdc4 100644 --- a/lms/djangoapps/teams/static/teams/templates/date.underscore +++ b/lms/djangoapps/teams/static/teams/templates/date.underscore @@ -1 +1 @@ - + diff --git a/lms/djangoapps/teams/static/teams/templates/edit-team-member.underscore b/lms/djangoapps/teams/static/teams/templates/edit-team-member.underscore index d98af57c0d..b8bc9839c1 100644 --- a/lms/djangoapps/teams/static/teams/templates/edit-team-member.underscore +++ b/lms/djangoapps/teams/static/teams/templates/edit-team-member.underscore @@ -1,16 +1,16 @@
  • - - <%= username %>'s profile page + + <%= username /* xss-lint: disable=underscore-not-escaped */%>'s profile page
    - <%= username %> + <%= username /* xss-lint: disable=underscore-not-escaped */%>
    - <%= dateJoined %> + <%= dateJoined /* xss-lint: disable=underscore-not-escaped */%> | - <%= lastActive %> + <%= lastActive /* xss-lint: disable=underscore-not-escaped */%>
    -
  • diff --git a/lms/static/js/views/file_uploader.js b/lms/static/js/views/file_uploader.js index d897852f95..18c4ef5af7 100644 --- a/lms/static/js/views/file_uploader.js +++ b/lms/static/js/views/file_uploader.js @@ -38,7 +38,7 @@ return optionVal || default_value; }, submitButton, resultNotification; - + // xss-lint: disable=javascript-jquery-html this.$el.html(this.template({ title: get_option_with_default('title', ''), inputLabel: get_option_with_default('inputLabel', ''), diff --git a/themes/stanford-style/lms/templates/static_templates/tos.html b/themes/stanford-style/lms/templates/static_templates/tos.html index ad65e30bce..574b08d44b 100644 --- a/themes/stanford-style/lms/templates/static_templates/tos.html +++ b/themes/stanford-style/lms/templates/static_templates/tos.html @@ -1,4 +1,5 @@ ## mako +<%page expression_filter="h"/> <%! from django.utils.translation import ugettext as _ %> @@ -27,6 +28,7 @@