mirror of https://github.com/MISP/MISP
fix: [stix 1/2 import] Adding misp event json data within the 'Event' field if it is not already in
parent
d0b99bebda
commit
6239738192
|
@ -5844,6 +5844,9 @@ class Event extends AppModel
|
|||
if (trim($result) == '1') {
|
||||
$data = file_get_contents($output_path);
|
||||
$data = json_decode($data, true);
|
||||
if (empty($data['Event'])) {
|
||||
$data = array('Event' => $data);
|
||||
}
|
||||
unlink($output_path);
|
||||
$created_id = false;
|
||||
$validationIssues = false;
|
||||
|
|
Loading…
Reference in New Issue