mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding fix to SecurityComponent::_ _validatePost()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5150 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
5332fa9cd2
commit
552d723bad
1 changed files with 3 additions and 1 deletions
|
@ -510,7 +510,9 @@ class SecurityComponent extends Object {
|
|||
}
|
||||
continue;
|
||||
}
|
||||
$field[$key] = array_keys($value);
|
||||
if(!array_key_exists($key, $value)) {
|
||||
$field[$key] = array_keys($value);
|
||||
}
|
||||
}
|
||||
$check = urlencode(Security::hash(serialize($field) . CAKE_SESSION_STRING));
|
||||
|
||||
|
|
Loading…
Reference in a new issue