mirror of https://github.com/MISP/MISP
Support empty attribute type in IOC import
parent
74d9567cf5
commit
52b7365f01
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue