diff --git a/lib/Cake/Controller/Component/SecurityComponent.php b/lib/Cake/Controller/Component/SecurityComponent.php index d9f32c1fd..bbf0314a8 100644 --- a/lib/Cake/Controller/Component/SecurityComponent.php +++ b/lib/Cake/Controller/Component/SecurityComponent.php @@ -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]); } }