mirror of https://github.com/MISP/MISP
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 errorpull/4584/head
parent
79f34238a8
commit
2b8f655415
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue