mirror of https://github.com/MISP/MISP
fix #6266 vhash &
parent
d6c9cfb806
commit
b33193c4d0
|
@ -1196,7 +1196,7 @@ class Attribute extends AppModel
|
|||
}
|
||||
break;
|
||||
case 'filename|vhash':
|
||||
if (preg_match("#^.+\|[a-zA-Z0-9]+$#", $value)) {
|
||||
if (preg_match("#^.+\|[a-zA-Z0-9&]+$#", $value)) {
|
||||
$returnValue = true;
|
||||
} else {
|
||||
$returnValue = __('Checksum has an invalid length or format (expected: filename|string characters). Please double check the value or select type "other".');
|
||||
|
@ -1459,7 +1459,7 @@ class Attribute extends AppModel
|
|||
case 'dash':
|
||||
case 'xmr':
|
||||
case 'vhash':
|
||||
if (preg_match('/^[a-zA-Z0-9]+$/', $value)) {
|
||||
if (preg_match('/^[a-zA-Z0-9&]+$/', $value)) {
|
||||
$returnValue = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue