From 552d723bad354db663ec404d180820b4fa432303 Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 21 May 2007 20:20:55 +0000 Subject: [PATCH] Adding fix to SecurityComponent::_ _validatePost() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5150 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/components/security.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cake/libs/controller/components/security.php b/cake/libs/controller/components/security.php index c9d5e941c..eaef1d015 100644 --- a/cake/libs/controller/components/security.php +++ b/cake/libs/controller/components/security.php @@ -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));