mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correct pattern matching.
Instead of 10 digits, it should limit at 10 groups.
Refs 1988e89e73
This commit is contained in:
parent
1aa7331b0d
commit
b3dfad614a
1 changed files with 2 additions and 2 deletions
|
@ -470,8 +470,8 @@ class SecurityComponent extends Component {
|
|||
$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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue