Skip to content
Permalink
Browse files

Correct pattern matching.

Instead of 10 digits, it should limit at 10 groups.

Refs 1988e89
  • Loading branch information...
markstory committed Jul 6, 2014
1 parent 1aa7331 commit b3dfad614ade26ba68c08bc52fb750dcd6875bac
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Controller/Component/SecurityComponent.php
@@ -470,8 +470,8 @@ protected function _validatePost(Controller $controller) {
$multi = array();
foreach ($fieldList as $i => $key) {
if (preg_match('/(\.\d{1,10})+$/', $key)) {
$multi[$i] = preg_replace('/(\.\d{1,10})+$/', '', $key);
if (preg_match('/(\.\d+){1,10}$/', $key)) {
$multi[$i] = preg_replace('/(\.\d+){1,10}$/', '', $key);
unset($fieldList[$i]);
}
}

0 comments on commit b3dfad6

Please sign in to comment.
You can’t perform that action at this time.