From 206c40e6b7a58873807184f6b86f5e11151fefc8 Mon Sep 17 00:00:00 2001 From: Cody Maffucci <46459665+Maffooch@users.noreply.github.com> Date: Fri, 24 Jan 2025 13:39:50 -0600 Subject: [PATCH] Jira Template: Do not HTML encode before shipping to jira --- .../issue-trackers/jira_full/jira-description.tpl | 10 +++++----- .../jira_full/jira-finding-group-description.tpl | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dojo/templates/issue-trackers/jira_full/jira-description.tpl b/dojo/templates/issue-trackers/jira_full/jira-description.tpl index 6fd326efb5f..3c3fd22faac 100644 --- a/dojo/templates/issue-trackers/jira_full/jira-description.tpl +++ b/dojo/templates/issue-trackers/jira_full/jira-description.tpl @@ -72,26 +72,26 @@ {% endif %} *Description*: -{{ finding.description }} +{{ finding.description|safe }} {% if finding.mitigation %} *Mitigation*: -{{ finding.mitigation }} +{{ finding.mitigation|safe }} {% endif %} -{% if finding.impact %} +{% if finding.impact|safe %} *Impact*: {{ finding.impact }} {% endif %} {% if finding.steps_to_reproduce %} *Steps to reproduce*: -{{ finding.steps_to_reproduce }} +{{ finding.steps_to_reproduce|safe }} {% endif %} {% if finding.references %} *References*: -{{ finding.references }} +{{ finding.references|safe }} {% endif %} *Reporter:* [{{ finding.reporter|full_name}} ({{ finding.reporter.email }})|mailto:{{ finding.reporter.email }}] diff --git a/dojo/templates/issue-trackers/jira_full/jira-finding-group-description.tpl b/dojo/templates/issue-trackers/jira_full/jira-finding-group-description.tpl index 258aa78ead9..92a8997af27 100644 --- a/dojo/templates/issue-trackers/jira_full/jira-finding-group-description.tpl +++ b/dojo/templates/issue-trackers/jira_full/jira-finding-group-description.tpl @@ -66,26 +66,26 @@ h3. [{{ finding.title|jiraencode}}|{{ finding_url|full_url }}] {% endif %} *Description*: -{{ finding.description }} +{{ finding.description|safe }} {% if finding.mitigation %} *Mitigation*: -{{ finding.mitigation }} +{{ finding.mitigation|safe }} {% endif %} {% if finding.impact %} *Impact*: -{{ finding.impact }} +{{ finding.impact|safe }} {% endif %} {% if finding.steps_to_reproduce %} *Steps to reproduce*: -{{ finding.steps_to_reproduce }} +{{ finding.steps_to_reproduce|safe }} {% endif %} {% if finding.references %} *References*: -{{ finding.references }} +{{ finding.references|safe }} {% endif %} *Reporter:* [{{ finding.reporter|full_name}} ({{ finding.reporter.email }})|mailto:{{ finding.reporter.email }}]