From dc5faf0ebf64461246da9691d754e563c20e5f42 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 18 Dec 2008 00:41:55 +0000 Subject: Update cookie handling to ignore $Version, $Path and $Domain cookie attributes and make it RF2109 compliant. --- kohana/libraries/Input.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kohana/libraries') diff --git a/kohana/libraries/Input.php b/kohana/libraries/Input.php index e0296d03..c5289840 100644 --- a/kohana/libraries/Input.php +++ b/kohana/libraries/Input.php @@ -129,6 +129,10 @@ class Input_Core { { foreach ($_COOKIE as $key => $val) { + // Ignore special attributes in RFC2109 compliant cookies + if ($key == '$Version' || $key == '$Path' || $key == '$Domain') { + continue; + } // Sanitize $_COOKIE $_COOKIE[$this->clean_input_keys($key)] = $this->clean_input_data($val); } -- cgit v1.2.3