mirror of https://github.com/MISP/MISP
fix: [enrichment] Added missing data field in attribute in case of attachement type attribute
parent
7123c949c2
commit
b71ec87021
|
@ -5038,6 +5038,9 @@ class EventsController extends AppController
|
|||
|
||||
private function __queryEnrichment($attribute, $module, $options, $type)
|
||||
{
|
||||
if ($this->Event->Attribute->typeIsAttachment($attribute[0]['Attribute']['type'])) {
|
||||
$attribute[0]['Attribute']['data'] = $this->Event->Attribute->base64EncodeAttachment($attribute[0]['Attribute']);
|
||||
}
|
||||
$data = array('module' => $module, 'attribute' => $attribute[0]['Attribute'], 'event_id' => $attribute[0]['Event']['id']);
|
||||
if (!empty($options)) {
|
||||
$data['config'] = $options;
|
||||
|
|
Loading…
Reference in New Issue