Merge pull request #424 from stefanozoffoli/patch-2

Prevent blackhole auth error where are present multi fields
This commit is contained in:
Mark Story 2012-01-19 18:50:39 -08:00
commit 599d8b885c

View file

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