Support empty attribute type in IOC import

pull/4807/head
Richard van den Berg 2019-05-20 10:02:32 +02:00
parent 74d9567cf5
commit 52b7365f01
1 changed files with 6 additions and 1 deletions

View File

@ -262,7 +262,12 @@ class IOCImportComponent extends Component
private function __analyseIndicator($attribute)
{
$attribute['distribution'] = $this->distribution;
$temp = $this->__checkType($attribute['search'], $attribute['type']);
if (isset($attribute['type'])) {
$type = $attribute['type'];
} else {
$type = '';
}
$temp = $this->__checkType($attribute['search'], $type);
if ($attribute['condition'] !== 'containsnot') {
if (!$temp) {
return false;