new: [API] Allow posting freetext data for ingestion via the event uuid instead of ID, fixes #4995

pull/5005/head
iglocska 2019-08-14 15:17:25 +02:00
parent 60e68d1459
commit 50db8c9a45
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 0 deletions

View File

@ -4003,6 +4003,7 @@ class EventsController extends AppController
public function __pushFreetext($attributes, $id, $distribution = false, $sg = false, $adhereToWarninglists = false)
{
$id = $this->Toolbox->findIdByUuid($this->Event, $id);
if ($distribution === false) {
if (Configure::read('MISP.default_attribute_distribution') != null) {
if (Configure::read('MISP.default_attribute_distribution') == 'event') {