From a2f91999e2b149493e9e6301e76e24425d129341 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/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json b/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json index b4e2e08a5..4e3863985 100644 --- a/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json +++ b/spiffworkflow-backend/keycloak/realm_exports/spiffworkflow-realm.json @@ -3634,4 +3634,4 @@ "clientPolicies" : { "policies" : [ ] } -} \ No newline at end of file +} diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py b/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py index f7a6e57e2..26f7e0ecc 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/routes/tasks_controller.py +++ b/spiffworkflow-backend/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 == '