mirror of https://github.com/MISP/MISP
fix: [enrichment] Applying regular expressions to values before displaying them
- So when the DB is queried to find if object attributes with those values already exist, we do not miss some stored valuespull/4584/head
parent
08f1c4c4c8
commit
b8c5825e80
|
@ -5318,6 +5318,7 @@ class Event extends AppModel
|
|||
if (!isset($attribute['to_ids'])) {
|
||||
$attribute['to_ids'] = $this->Event->Attribute->typeDefinitions[$attribute['type']]['to_ids'];
|
||||
}
|
||||
$attribute['value'] = $this->Attribute->runRegexp($attribute['type'], $attribute['value']);
|
||||
$attribute['distribution'] = (isset($attribute['distribution']) ? (int)$attribute['distribution'] : $defaultDistribution);
|
||||
$attribute['sharing_group_id'] = (isset($attribute['sharing_group_id']) ? (int)$attribute['sharing_group_id'] : 0);
|
||||
return $attribute;
|
||||
|
|
Loading…
Reference in New Issue