From d85131f5382215b181aeda5c45deba977c5fa690 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Mon, 30 Jul 2018 23:52:41 +0200 Subject: [PATCH] fix: [stix2 export] Fixed syntax in stix2 function --- app/Controller/EventsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 97b2ad2d1..3309e8362 100644 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -4033,9 +4033,9 @@ class EventsController extends AppController $result = $this->Event->stix2($id, $tags, $withAttachments, $this->Auth->user(), 'json', $from, $to, $last); if ($result['success'] == 1) { if ($numeric) { - $filename = 'misp.stix2.event' . $id . '.json' + $filename = 'misp.stix2.event' . $id . '.json'; } else { - $filename = 'misp.stix2.event.collection.json' + $filename = 'misp.stix2.event.collection.json'; } $this->header('Content-Disposition: download; filename="' . $filename . '"'); return $this->RestResponse->viewData($result['data'], 'application/json', false, true, $filename);