mirror of https://github.com/MISP/MISP
fix: [API] malware samples not encoded with withAttachments=1 on the event level restSearch
parent
84f1006ed6
commit
d43570932a
|
@ -3070,6 +3070,9 @@ class EventsController extends AppController
|
|||
$final = $exportTool->header($exportToolParams);
|
||||
$eventCount = count($eventid);
|
||||
$i = 0;
|
||||
if (!empty($filters['withAttachments'])) {
|
||||
$filters['includeAttachments'] = 1;
|
||||
}
|
||||
foreach ($eventid as $k => $currentEventId) {
|
||||
$filters['eventid'] = $currentEventId;
|
||||
if (!empty($filters['tags']['NOT'])) {
|
||||
|
|
Loading…
Reference in New Issue