mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-22 20:58:28 +00:00
Enable autoescape security feature for processing markdown data in descriptions from the BPMN Diagrams
This commit is contained in:
parent
1e8a095760
commit
c6eb2d937d
@ -73,7 +73,7 @@ class Task(object):
|
||||
def process_documentation(self, documentation):
|
||||
'''Runs markdown documentation through the Jinja2 processor to inject data
|
||||
create loops, etc...'''
|
||||
rtemplate = Environment(loader=BaseLoader).from_string(documentation)
|
||||
rtemplate = Environment(autoescape=True, loader=BaseLoader).from_string(documentation)
|
||||
self.documentation = rtemplate.render(**self.data)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user