From 98ae7fb4989b0b5851d864a479c4264de4b95444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 20 Jul 2023 14:02:14 +0200 Subject: [PATCH] new: Expose MISP Export on download modal --- website/web/genericapi.py | 2 +- website/web/templates/tree.html | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/website/web/genericapi.py b/website/web/genericapi.py index 8819108..4ddcbe9 100644 --- a/website/web/genericapi.py +++ b/website/web/genericapi.py @@ -175,7 +175,7 @@ class MISPExport(Resource): to_return = [] for e in event: - to_return.append(e.to_json(indent=2)) + to_return.append(json.loads(e.to_json())) return to_return diff --git a/website/web/templates/tree.html b/website/web/templates/tree.html index cdadb5e..4c8a4bc 100644 --- a/website/web/templates/tree.html +++ b/website/web/templates/tree.html @@ -644,6 +644,12 @@
  • Download full capture
  • +
  • + Download as MISP Event + {% if parent_uuid %} + (with parents) + {% endif %} +
  • {% if has_redirects %}
  • Download redirects