mirror of https://github.com/MISP/MISP
fix: [sync] Set org_id to 0 on proposal push if the sighting is anonymised
- correctly prevents the remote side from misattributing the sighting to the sync user's orgpull/5430/head
parent
95f17d6acd
commit
8ee304eff9
|
@ -1080,6 +1080,11 @@ class Event extends AppModel
|
|||
$HttpSocket = $this->setupHttpSocket($server, $HttpSocket);
|
||||
$request = $this->setupSyncRequest($server);
|
||||
$uri = $server['Server']['url'] . '/sightings/bulkSaveSightings/' . $event_uuid;
|
||||
foreach ($sightings as &$sighting) {
|
||||
if (!isset($sighting['org_id'])) {
|
||||
$sighting['org_id'] = '0';
|
||||
}
|
||||
}
|
||||
$data = json_encode($sightings);
|
||||
if (!empty(Configure::read('Security.sync_audit'))) {
|
||||
$pushLogEntry = sprintf(
|
||||
|
|
Loading…
Reference in New Issue