From c3b806ce8c0740e58e4f3c9c5676acea689d4519 Mon Sep 17 00:00:00 2001 From: Stefano Zoffoli Date: Thu, 19 Jan 2012 17:48:39 +0100 Subject: [PATCH] Prevent blackhole auth error where are present multi fields --- lib/Cake/Controller/Component/SecurityComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); } }