From 2b8f6554159b5391ef1a2fa56f461f776c8e9610 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Fri, 12 Apr 2019 14:41:54 +0200 Subject: [PATCH] fix: [stix restSearch[ Quick file extension clarification - Depending on the format (.stix or .stix2) - Impacting temporary files, it is thus for debugging purpose in case of error --- app/Lib/Export/StixExport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Lib/Export/StixExport.php b/app/Lib/Export/StixExport.php index 214f1b29e..845fb1e1f 100644 --- a/app/Lib/Export/StixExport.php +++ b/app/Lib/Export/StixExport.php @@ -58,7 +58,7 @@ class StixExport $randomFileName = $this->generateRandomFileName(); $this->__tmp_dir = $this->__scripts_dir . 'tmp/'; $this->__framing = json_decode(shell_exec($framing_cmd), true); - $this->__stix_file = new File($this->__tmp_dir . $randomFileName . '.stix'); + $this->__stix_file = new File($this->__tmp_dir . $randomFileName . '.' . $this->__return_type); unset($randomFileName); $this->__stix_file->write($this->__framing['header']); $this->__initialize_misp_file();