mirror of https://github.com/MISP/MISP
Only capture objects when adding an event via the API
parent
0830d23343
commit
45b3eb25ec
|
@ -1648,10 +1648,10 @@ class Event extends AppModel {
|
|||
if ($fromXml) $created_id = $existingEvent['Event']['id'];
|
||||
return $existingEvent['Event']['id'];
|
||||
} else {
|
||||
$data = $this->__captureObjects($data, $user);
|
||||
if ($fromXml) $data = $this->__captureObjects($data, $user);
|
||||
}
|
||||
} else {
|
||||
$data = $this->__captureObjects($data, $user);
|
||||
if ($fromXml) $data = $this->__captureObjects($data, $user);
|
||||
}
|
||||
// FIXME chri: validatebut the necessity for all these fields...impact on security !
|
||||
$fieldList = array(
|
||||
|
|
Loading…
Reference in New Issue