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:
phpnut 2007-05-21 20:20:55 +00:00
parent 5332fa9cd2
commit 552d723bad

View file

@ -510,7 +510,9 @@ class SecurityComponent extends Object {
} }
continue; 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)); $check = urlencode(Security::hash(serialize($field) . CAKE_SESSION_STRING));