mirror of https://github.com/MISP/MISP
chg: [feed] Break loop when match is found
parent
3f03ceb229
commit
e20fc9ce60
|
@ -562,6 +562,7 @@ class Feed extends AppModel
|
|||
foreach ($filterRules[$field][$prefix] as $temp) {
|
||||
if (stripos($object['name'], $temp) !== false) {
|
||||
$found = true;
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -575,9 +576,6 @@ class Feed extends AppModel
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!$filterRules) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue