mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Merge pull request #558 from stefanozoffoli/patch-3
Prevent blackhole auth error for multi fields. Fields with .1.0 should not blackhole.
This commit is contained in:
commit
6e4456fbd7
1 changed files with 1 additions and 5 deletions
|
@ -604,12 +604,8 @@ class FormHelper extends AppHelper {
|
|||
}
|
||||
}
|
||||
|
||||
$last = end($field);
|
||||
if (is_numeric($last) || empty($last)) {
|
||||
array_pop($field);
|
||||
}
|
||||
|
||||
$field = implode('.', $field);
|
||||
$field = preg_replace('/(\.\d+)+$/', '', $field);
|
||||
|
||||
if ($lock) {
|
||||
if (!in_array($field, $this->fields)) {
|
||||
|
|
Loading…
Reference in a new issue