making video template safe

This commit is contained in:
Sanford Student
2016-03-23 16:58:39 -04:00
parent f0d8d48a02
commit 3d6fb38d69
2 changed files with 15 additions and 7 deletions

View File

@@ -108,6 +108,8 @@ class VideoModule(VideoFields, VideoTranscriptsMixin, VideoStudentViewHandlers,
# To make sure that js files are called in proper order we use numerical
# index. We do that to avoid issues that occurs in tests.
module = __name__.replace('.video_module', '', 2)
#TODO: For each of the following, ensure that any generated html is properly escaped.
js = {
'js': [
resource_string(module, 'js/src/video/00_component.js'),