Navigation Menu

Skip to content

Commit

Permalink
Ensuring that nested cookie values are deleted.
Browse files Browse the repository at this point in the history
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 b76901e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cake/libs/controller/components/cookie.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit b76901e

Please sign in to comment.