Fixes vulnerability identified by SonarCloud

This commit is contained in:
Aaron Louie 2020-02-12 11:07:01 -05:00
parent 0664fec141
commit 5a53ddb88c
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class CompleteTemplate(object):
def make_template(self, file_data_model, context):
doc = DocxTemplate(BytesIO(file_data_model.data))
jinja_env = jinja2.Environment()
jinja_env = jinja2.Environment(autoescape=True)
doc.render(context, jinja_env)
target_stream = BytesIO()
doc.save(target_stream)