Skip to content

Commit 4cf3c00

Browse files
authored
Merge pull request #184 from edx/security-fix/fix-xss-tos
Fix XSS while prepending html
2 parents bad3b29 + 71b5ef4 commit 4cf3c00

File tree

1 file changed

+2
-0
lines changed
  • themes/stanford-style/lms/templates/static_templates

1 file changed

+2
-0
lines changed

Diff for: themes/stanford-style/lms/templates/static_templates/tos.html

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## mako
2+
<%page expression_filter="h"/>
23
<%!
34
from django.utils.translation import ugettext as _
45
%>
@@ -27,6 +28,7 @@ <h2 id="copyright">${_('Copyright')}</h2>
2728
<script>
2829
$(document).ready(function() {
2930
var print_tos = '<input type="button" value="Print Terms of Service" class="print">';
31+
// xss-lint: disable=javascript-jquery-prepend, javascript-jquery-append
3032
$('#content section.tos').prepend(print_tos).append(print_tos);
3133
$('#content section.tos input.print').click(function() {
3234
window.print();

0 commit comments

Comments
 (0)