mirror of https://github.com/MISP/MISP
chg: [correlation] Do not try to unblock value if doing full correlation
parent
f3d0fcebbb
commit
7615123738
|
@ -501,7 +501,7 @@ class Correlation extends AppModel
|
|||
// If we have more correlations for the value than the limit, set the block entry and stop the correlation process
|
||||
$this->OverCorrelatingValue->block($cV);
|
||||
return true;
|
||||
} else if ($count !== 0) {
|
||||
} else if ($count !== 0 && !$full) {
|
||||
// If we have fewer hits than the limit, proceed with the correlation, but first make sure we remove any existing blockers
|
||||
$this->OverCorrelatingValue->unblock($cV);
|
||||
}
|
||||
|
|
|
@ -59,13 +59,11 @@ class OverCorrelatingValue extends AppModel
|
|||
*/
|
||||
public function unblock($value)
|
||||
{
|
||||
if ($this->isBlocked($value)) {
|
||||
$value = self::truncate($value);
|
||||
$this->deleteAll([
|
||||
'OverCorrelatingValue.value' => $value,
|
||||
], false);
|
||||
$this->blockedValues[$value] = false;
|
||||
}
|
||||
$value = self::truncate($value);
|
||||
$this->deleteAll([
|
||||
'OverCorrelatingValue.value' => $value,
|
||||
], false);
|
||||
$this->blockedValues[$value] = false;
|
||||
}
|
||||
|
||||
public function cleanCache()
|
||||
|
|
Loading…
Reference in New Issue