fix: [API] malware samples not encoded with withAttachments=1 on the event level restSearch

pull/3725/head
iglocska 2018-09-19 07:25:37 +02:00
parent 84f1006ed6
commit d43570932a
1 changed files with 3 additions and 0 deletions

View File

@ -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'])) {