Permalink
Browse files

Prevent blackhole auth error where are present multi fields

  • Loading branch information...
1 parent 5e495ad commit c3b806ce8c0740e58e4f3c9c5676acea689d4519 @stefanozoffoli stefanozoffoli committed Jan 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Component/SecurityComponent.php
View
4 lib/Cake/Controller/Component/SecurityComponent.php
@@ -430,8 +430,8 @@ protected function _validatePost($controller) {
$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]);
}
}

0 comments on commit c3b806c

Please sign in to comment.