Skip to content
Permalink
Browse files

Ensuring that nested cookie values are deleted.

Cookies created with write('Foo', $array) would not get proper
recursive deletion done.
Fixes #1651
  • Loading branch information...
markstory committed May 28, 2011
1 parent b64b121 commit b76901eb4320f61f77bd9aeb1aeeae74840d1e78
Showing with 1 addition and 2 deletions.
  1. +1 −2 cake/libs/controller/components/cookie.php
@@ -285,9 +285,8 @@ function delete($key) {
foreach ($this->__values[$key] as $idx => $val) {
$this->__delete("[$key][$idx]");
}
} else {
$this->__delete("[$key]");
}
$this->__delete("[$key]");
unset($this->__values[$key]);
return;
}

0 comments on commit b76901e

Please sign in to comment.
You can’t perform that action at this time.