pull/6325/head
rmkml 2020-09-18 20:40:04 +02:00
parent d6c9cfb806
commit b33193c4d0
1 changed files with 2 additions and 2 deletions

View File

@ -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;