Correct pattern matching.

Instead of 10 digits, it should limit at 10 groups.

Refs 1988e89e73
This commit is contained in:
mark_story 2014-07-06 09:42:20 -04:00
parent 1aa7331b0d
commit b3dfad614a

View file

@ -470,8 +470,8 @@ class SecurityComponent extends Component {
$multi = array(); $multi = array();
foreach ($fieldList as $i => $key) { foreach ($fieldList as $i => $key) {
if (preg_match('/(\.\d{1,10})+$/', $key)) { if (preg_match('/(\.\d+){1,10}$/', $key)) {
$multi[$i] = preg_replace('/(\.\d{1,10})+$/', '', $key); $multi[$i] = preg_replace('/(\.\d+){1,10}$/', '', $key);
unset($fieldList[$i]); unset($fieldList[$i]);
} }
} }