mirror of https://github.com/MISP/MISP
Merge pull request #5097 from JakubOnderka/patch-18
chg: [feed] Break loop when match is foundpull/5177/head
commit
d656c2b318
|
@ -502,6 +502,7 @@ class Feed extends AppModel
|
|||
foreach ($filterRules[$field][$prefix] as $temp) {
|
||||
if (stripos($object['name'], $temp) !== false) {
|
||||
$found = true;
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -515,9 +516,6 @@ class Feed extends AppModel
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!$filterRules) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue