mirror of https://github.com/MISP/MISP
fix: [deprecated stix export] fixed, parameters weren't correctly taken into account
- affects /events/stixpull/4075/head
parent
66037a36c5
commit
63ebc32d5d
|
@ -3801,6 +3801,9 @@ class EventsController extends AppController
|
|||
} else {
|
||||
$data = $this->request->data;
|
||||
}
|
||||
if (!isset($data['request'])) {
|
||||
$data = array('request' => $data);
|
||||
}
|
||||
$paramArray = array('id', 'withAttachment', 'tags', 'from', 'to', 'last');
|
||||
foreach ($paramArray as $p) {
|
||||
if (isset($data['request'][$p])) {
|
||||
|
@ -3850,7 +3853,7 @@ class EventsController extends AppController
|
|||
}
|
||||
$this->set('data', $result['data']);
|
||||
} else {
|
||||
throw new Exception(h($result['message']));
|
||||
throw new BadRequestException(h($result['message']));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue