From 71b5ef4771d51ed656ebb3d1a90cc03b92bffae5 Mon Sep 17 00:00:00 2001 From: uzairr Date: Mon, 22 Jun 2020 17:27:17 +0500 Subject: [PATCH 1/5] Fix XSS while prepending html --- themes/stanford-style/lms/templates/static_templates/tos.html | 2 ++ 1 file changed, 2 insertions(+) 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 @@