Fixes vulnerability identified by SonarCloud
This commit is contained in:
parent
0664fec141
commit
5a53ddb88c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue