mirror of https://github.com/MISP/MISP
fix: [correlation] value truncation for the correlation value table
parent
762035dae4
commit
aa43182eca
|
@ -15,6 +15,8 @@ class CorrelationValue extends AppModel
|
|||
|
||||
public function getValueId($value)
|
||||
{
|
||||
// index is 191 long, missing the existing value lookup can lead to a duplicate entry
|
||||
$value = mb_substr($value, 0, 191);
|
||||
$existingValue = $this->find('first', [
|
||||
'recursive' => -1,
|
||||
'conditions' => [
|
||||
|
|
Loading…
Reference in New Issue