Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit b76901eb4320f61f77bd9aeb1aeeae74840d1e78 1 parent b64b121
@markstory markstory authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  cake/libs/controller/components/cookie.php
View
3  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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.