{"action":"created","issue":{"url":"https://api.github.com/repos/kohana/core/issues/599","labels_url":"https://api.github.com/repos/kohana/core/issues/599/labels{/name}","comments_url":"https://api.github.com/repos/kohana/core/issues/599/comments","events_url":"https://api.github.com/repos/kohana/core/issues/599/events","html_url":"https://github.com/kohana/core/pull/599","id":57890983,"number":599,"title":"Update Cookie.php :: fix error on quotes","user":{"login":"Fanamurov","id":1308521,"avatar_url":"https://avatars.githubusercontent.com/u/1308521?v=3","gravatar_id":"","url":"https://api.github.com/users/Fanamurov","html_url":"https://github.com/Fanamurov","followers_url":"https://api.github.com/users/Fanamurov/followers","following_url":"https://api.github.com/users/Fanamurov/following{/other_user}","gists_url":"https://api.github.com/users/Fanamurov/gists{/gist_id}","starred_url":"https://api.github.com/users/Fanamurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fanamurov/subscriptions","organizations_url":"https://api.github.com/users/Fanamurov/orgs","repos_url":"https://api.github.com/users/Fanamurov/repos","events_url":"https://api.github.com/users/Fanamurov/events{/privacy}","received_events_url":"https://api.github.com/users/Fanamurov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-17T07:06:35Z","updated_at":"2015-04-08T06:32:02Z","closed_at":"2015-02-20T02:55:39Z","pull_request":{"url":"https://api.github.com/repos/kohana/core/pulls/599","html_url":"https://github.com/kohana/core/pull/599","diff_url":"https://github.com/kohana/core/pull/599.diff","patch_url":"https://github.com/kohana/core/pull/599.patch"},"body":"```php\r\n$array['test']['0'] = 'value2';\r\n$array['test']['1'] = 'value2';\r\nCookie::set('test', json_encode($array));\r\n```\r\n\r\nafter reload\r\n```php\r\nCookie::get('test', NULL); //NULL\r\n```\r\n\r\n== or ==\r\n```php\r\nCookie::set('test', 'Data with \"quotes\"');\r\n```\r\nafter reload \r\n```php\r\nCookie::get('test', NULL); //NULL\r\n```\r\n\r\nJust try write this date on cookie. The data will be recorded in set(), but removed when reading Cookie::get() after the Security::slow_equals() - hashes does not match\r\n\r\n//HARDCODE MODE OFF"},"comment":{"url":"https://api.github.com/repos/kohana/core/issues/comments/90819662","html_url":"https://github.com/kohana/core/pull/599#issuecomment-90819662","issue_url":"https://api.github.com/repos/kohana/core/issues/599","id":90819662,"user":{"login":"enov","id":4045110,"avatar_url":"https://avatars.githubusercontent.com/u/4045110?v=3","gravatar_id":"","url":"https://api.github.com/users/enov","html_url":"https://github.com/enov","followers_url":"https://api.github.com/users/enov/followers","following_url":"https://api.github.com/users/enov/following{/other_user}","gists_url":"https://api.github.com/users/enov/gists{/gist_id}","starred_url":"https://api.github.com/users/enov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enov/subscriptions","organizations_url":"https://api.github.com/users/enov/orgs","repos_url":"https://api.github.com/users/enov/repos","events_url":"https://api.github.com/users/enov/events{/privacy}","received_events_url":"https://api.github.com/users/enov/received_events","type":"User","site_admin":false},"created_at":"2015-04-08T06:32:02Z","updated_at":"2015-04-08T06:32:02Z","body":"Now, it is obvious why Kohana is not sanitizing `$_COOKIE`: #601 "}}