A previous change reverted by accident in the previous commit

pull/195/head
iglocska 2013-08-21 13:08:28 +02:00
parent b7d95ed743
commit 20efca4d79
1 changed files with 4 additions and 2 deletions

View File

@ -512,9 +512,11 @@ class AttributesController extends AppController {
$attribute['value'] = $entry['Value'];
$attribute['to_ids'] = ($entry['Confidence'] > 51) ? 1 : 0; // To IDS if high confidence
$attribute['distribution'] = 3; // 'All communities'
if (Configure::read('MISP.default_attribute_distribution') != null) {
if (Configure::read('MISP.default_attribute_distribution') === 'event') {
$attribute['distribution'] = $this->Event->data['Event']['distribution'];
} else {
$attribute['distribution'] = Configure::read('MISP.default_attribute_distribution');
}
}
switch($entry['Type']) {
case 'Address':
$attribute['category'] = 'Network activity';