Permalink
Browse files

Merge pull request #424 from stefanozoffoli/patch-2

Prevent blackhole auth error where are present multi fields
  • Loading branch information...
2 parents eb101b9 + c3b806c commit 599d8b885c38769ee9aca0ecc6190c677339a4fd @markstory markstory committed Jan 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 599d8b8

Please sign in to comment.