mirror of https://github.com/MISP/MISP
Fix errors on NIDS export when whitelist is empty
parent
2f43f28184
commit
9da8ed86c5
|
@ -647,7 +647,7 @@ class NidsExport
|
|||
|
||||
public function checkWhitelist($value)
|
||||
{
|
||||
if ($this->checkWhitelist) {
|
||||
if ($this->checkWhitelist && is_array($this->whitelist)) {
|
||||
foreach ($this->whitelist as $wlitem) {
|
||||
if (preg_match($wlitem, $value)) {
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue