fix: [console:EventShell] Fixed parameter parsing and typo

pull/9305/head
Sami Mokaddem 2023-09-29 10:35:33 +02:00
parent 290a2b834f
commit d84084c11c
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ class EventShell extends AppShell
}
$isXml = $extension === 'xml';
$takeOwnership = $this->param('take_ownership');
$publish = $this->param('publish');
$takeOwnership = $this->params['take-ownership'];
$publish = $this->params['publish'];
$results = $this->Event->addMISPExportFile($user, $content, $isXml, $takeOwnership, $publish);
foreach ($results as $result) {