cakephp/cakephp — pull request #558 by stefanozoffoli (2012-03-13 16:10:40+00:00)
Title: Prevent blackhole auth error where are present multi fields (part 2)

I encountered a problem that is related to the one solved here:

https://github.com/cakephp/cakephp/pull/424

If I use Form Helper to do fields like this:

```php
Form->input('Contact.others.0.0', array(
'label'	=> __('Voce'),
'type'	=> 'text',
'div'	=> 'control-group span4 input',
'class'	=> 'span4 input-others-key',
));
?>
Form->input('Contact.others.0.1', array(
'label'	=> __('Valore'),
'type'	=> 'text',
'div'	=> 'control-group span4 input',
'class'	=> 'span4 input-others-value',
));
?>
```

Then the secure method to determine form sign uses these fields:

```php
Array
(
...
[i] => Contact.others.0
....
)
```

And gave me auth error on form submit.

With this patch it correctly uses only input names:

```php
Array
(
...
[i] => Contact.others
....
)
```