mirror of https://github.com/MISP/MISP
fix: [workflow:ms-teams-webhook] Patched to pass more data to ms-teams
parent
0f93fbaf8c
commit
23ab080605
|
@ -5,7 +5,7 @@ class Module_ms_teams_webhook extends Module_webhook
|
|||
{
|
||||
public $id = 'ms-teams-webhook';
|
||||
public $name = 'MS Teams Webhook';
|
||||
public $version = '0.2';
|
||||
public $version = '0.3';
|
||||
public $description = 'Perform callbacks to the MS Teams webhook provided by the "Incoming Webhook" connector';
|
||||
public $icon_path = 'MS_Teams.png';
|
||||
|
||||
|
@ -40,7 +40,7 @@ class Module_ms_teams_webhook extends Module_webhook
|
|||
|
||||
protected function doRequest($url, $contentType, $data, $headers = [], $serverConfig = null)
|
||||
{
|
||||
$data = '{"text":"' . implode($data) . '"}';
|
||||
$data = ['text' => JsonTool::encode($data)];
|
||||
return parent::doRequest($url, $contentType, $data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue