From 706bb57036e088312816d8ac4049cf0443cebd0a Mon Sep 17 00:00:00 2001 From: Dan Date: Mon, 6 Feb 2023 12:20:29 -0500 Subject: [PATCH] Use the same markdown library for displaying as for editing - could enable a security run_pyl --- keycloak/realm_exports/spiffworkflow-realm.json | 2 +- src/spiffworkflow_backend/routes/tasks_controller.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/keycloak/realm_exports/spiffworkflow-realm.json b/keycloak/realm_exports/spiffworkflow-realm.json index b4e2e08a..4e386398 100644 --- a/keycloak/realm_exports/spiffworkflow-realm.json +++ b/keycloak/realm_exports/spiffworkflow-realm.json @@ -3634,4 +3634,4 @@ "clientPolicies" : { "policies" : [ ] } -} \ No newline at end of file +} diff --git a/src/spiffworkflow_backend/routes/tasks_controller.py b/src/spiffworkflow_backend/routes/tasks_controller.py index f7a6e57e..26f7e0ec 100644 --- a/src/spiffworkflow_backend/routes/tasks_controller.py +++ b/src/spiffworkflow_backend/routes/tasks_controller.py @@ -565,11 +565,9 @@ def _render_jinja_template(unprocessed_template: str, spiff_task: SpiffTask) -> raise wfe from template_error except Exception as error: type, value, tb = exc_info() - wfe = WorkflowTaskException( - str(error), task=spiff_task, exception=error - ) + wfe = WorkflowTaskException(str(error), task=spiff_task, exception=error) while tb: - if tb.tb_frame.f_code.co_filename == '