{"action":"created","comment":{"url":"https://api.github.com/repos/laravel/framework/pulls/comments/27774295","id":27774295,"diff_hunk":"@@ -79,7 +81,16 @@ protected function getPayload($key)\n \t\t\treturn array('data' => null, 'time' => null);\n \t\t}\n \n-\t\t$data = unserialize(substr($contents, 10));\n+\t\t// Stored cache may be corrupted\n+\t\t$contents = substr($contents, 10);\n+\t\tif( ! is_serialized($contents))","path":"src/Illuminate/Cache/FileStore.php","position":16,"original_position":16,"commit_id":"572877e4f30bee54d00e85412f411ecbe8aeb83a","original_commit_id":"572877e4f30bee54d00e85412f411ecbe8aeb83a","user":{"login":"taiyaei","id":3488360,"avatar_url":"https://avatars.githubusercontent.com/u/3488360?v=3","gravatar_id":"","url":"https://api.github.com/users/taiyaei","html_url":"https://github.com/taiyaei","followers_url":"https://api.github.com/users/taiyaei/followers","following_url":"https://api.github.com/users/taiyaei/following{/other_user}","gists_url":"https://api.github.com/users/taiyaei/gists{/gist_id}","starred_url":"https://api.github.com/users/taiyaei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taiyaei/subscriptions","organizations_url":"https://api.github.com/users/taiyaei/orgs","repos_url":"https://api.github.com/users/taiyaei/repos","events_url":"https://api.github.com/users/taiyaei/events{/privacy}","received_events_url":"https://api.github.com/users/taiyaei/received_events","type":"User","site_admin":false},"body":"Space after `if`","created_at":"2015-04-05T02:47:50Z","updated_at":"2015-04-05T02:47:50Z","html_url":"https://github.com/laravel/framework/pull/8278#discussion_r27774295","pull_request_url":"https://api.github.com/repos/laravel/framework/pulls/8278","_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments/27774295"},"html":{"href":"https://github.com/laravel/framework/pull/8278#discussion_r27774295"},"pull_request":{"href":"https://api.github.com/repos/laravel/framework/pulls/8278"}}},"pull_request":{"url":"https://api.github.com/repos/laravel/framework/pulls/8278","id":32642728,"html_url":"https://github.com/laravel/framework/pull/8278","diff_url":"https://github.com/laravel/framework/pull/8278.diff","patch_url":"https://github.com/laravel/framework/pull/8278.patch","issue_url":"https://api.github.com/repos/laravel/framework/issues/8278","number":8278,"state":"open","locked":false,"title":"[4.2] Safe write of cache and checking stored data is valid","user":{"login":"texnikru","id":282893,"avatar_url":"https://avatars.githubusercontent.com/u/282893?v=3","gravatar_id":"","url":"https://api.github.com/users/texnikru","html_url":"https://github.com/texnikru","followers_url":"https://api.github.com/users/texnikru/followers","following_url":"https://api.github.com/users/texnikru/following{/other_user}","gists_url":"https://api.github.com/users/texnikru/gists{/gist_id}","starred_url":"https://api.github.com/users/texnikru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texnikru/subscriptions","organizations_url":"https://api.github.com/users/texnikru/orgs","repos_url":"https://api.github.com/users/texnikru/repos","events_url":"https://api.github.com/users/texnikru/events{/privacy}","received_events_url":"https://api.github.com/users/texnikru/received_events","type":"User","site_admin":false},"body":"Subject","created_at":"2015-04-05T01:59:04Z","updated_at":"2015-04-05T02:47:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d47b7c554303d17a0d75b9c182cbd58a43ff16d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/laravel/framework/pulls/8278/commits","review_comments_url":"https://api.github.com/repos/laravel/framework/pulls/8278/comments","review_comment_url":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8278/comments","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/572877e4f30bee54d00e85412f411ecbe8aeb83a","head":{"label":"texnikru:texnikru_42_filestore_validation","ref":"texnikru_42_filestore_validation","sha":"572877e4f30bee54d00e85412f411ecbe8aeb83a","user":{"login":"texnikru","id":282893,"avatar_url":"https://avatars.githubusercontent.com/u/282893?v=3","gravatar_id":"","url":"https://api.github.com/users/texnikru","html_url":"https://github.com/texnikru","followers_url":"https://api.github.com/users/texnikru/followers","following_url":"https://api.github.com/users/texnikru/following{/other_user}","gists_url":"https://api.github.com/users/texnikru/gists{/gist_id}","starred_url":"https://api.github.com/users/texnikru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texnikru/subscriptions","organizations_url":"https://api.github.com/users/texnikru/orgs","repos_url":"https://api.github.com/users/texnikru/repos","events_url":"https://api.github.com/users/texnikru/events{/privacy}","received_events_url":"https://api.github.com/users/texnikru/received_events","type":"User","site_admin":false},"repo":{"id":33390742,"name":"framework","full_name":"texnikru/framework","owner":{"login":"texnikru","id":282893,"avatar_url":"https://avatars.githubusercontent.com/u/282893?v=3","gravatar_id":"","url":"https://api.github.com/users/texnikru","html_url":"https://github.com/texnikru","followers_url":"https://api.github.com/users/texnikru/followers","following_url":"https://api.github.com/users/texnikru/following{/other_user}","gists_url":"https://api.github.com/users/texnikru/gists{/gist_id}","starred_url":"https://api.github.com/users/texnikru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/texnikru/subscriptions","organizations_url":"https://api.github.com/users/texnikru/orgs","repos_url":"https://api.github.com/users/texnikru/repos","events_url":"https://api.github.com/users/texnikru/events{/privacy}","received_events_url":"https://api.github.com/users/texnikru/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/texnikru/framework","description":"","fork":true,"url":"https://api.github.com/repos/texnikru/framework","forks_url":"https://api.github.com/repos/texnikru/framework/forks","keys_url":"https://api.github.com/repos/texnikru/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/texnikru/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/texnikru/framework/teams","hooks_url":"https://api.github.com/repos/texnikru/framework/hooks","issue_events_url":"https://api.github.com/repos/texnikru/framework/issues/events{/number}","events_url":"https://api.github.com/repos/texnikru/framework/events","assignees_url":"https://api.github.com/repos/texnikru/framework/assignees{/user}","branches_url":"https://api.github.com/repos/texnikru/framework/branches{/branch}","tags_url":"https://api.github.com/repos/texnikru/framework/tags","blobs_url":"https://api.github.com/repos/texnikru/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/texnikru/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/texnikru/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/texnikru/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/texnikru/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/texnikru/framework/languages","stargazers_url":"https://api.github.com/repos/texnikru/framework/stargazers","contributors_url":"https://api.github.com/repos/texnikru/framework/contributors","subscribers_url":"https://api.github.com/repos/texnikru/framework/subscribers","subscription_url":"https://api.github.com/repos/texnikru/framework/subscription","commits_url":"https://api.github.com/repos/texnikru/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/texnikru/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/texnikru/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/texnikru/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/texnikru/framework/contents/{+path}","compare_url":"https://api.github.com/repos/texnikru/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/texnikru/framework/merges","archive_url":"https://api.github.com/repos/texnikru/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/texnikru/framework/downloads","issues_url":"https://api.github.com/repos/texnikru/framework/issues{/number}","pulls_url":"https://api.github.com/repos/texnikru/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/texnikru/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/texnikru/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/texnikru/framework/labels{/name}","releases_url":"https://api.github.com/repos/texnikru/framework/releases{/id}","created_at":"2015-04-04T01:48:35Z","updated_at":"2015-04-04T01:48:39Z","pushed_at":"2015-04-05T02:00:24Z","git_url":"git://github.com/texnikru/framework.git","ssh_url":"git@github.com:texnikru/framework.git","clone_url":"https://github.com/texnikru/framework.git","svn_url":"https://github.com/texnikru/framework","homepage":"http://laravel.com","size":62020,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"5.0"}},"base":{"label":"laravel:4.2","ref":"4.2","sha":"3359de6d6cd322e8a1b251c2f8d9dd42a3e4e232","user":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"repo":{"id":7548986,"name":"framework","full_name":"laravel/framework","owner":{"login":"laravel","id":958072,"avatar_url":"https://avatars.githubusercontent.com/u/958072?v=3","gravatar_id":"","url":"https://api.github.com/users/laravel","html_url":"https://github.com/laravel","followers_url":"https://api.github.com/users/laravel/followers","following_url":"https://api.github.com/users/laravel/following{/other_user}","gists_url":"https://api.github.com/users/laravel/gists{/gist_id}","starred_url":"https://api.github.com/users/laravel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laravel/subscriptions","organizations_url":"https://api.github.com/users/laravel/orgs","repos_url":"https://api.github.com/users/laravel/repos","events_url":"https://api.github.com/users/laravel/events{/privacy}","received_events_url":"https://api.github.com/users/laravel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/laravel/framework","description":"","fork":false,"url":"https://api.github.com/repos/laravel/framework","forks_url":"https://api.github.com/repos/laravel/framework/forks","keys_url":"https://api.github.com/repos/laravel/framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laravel/framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laravel/framework/teams","hooks_url":"https://api.github.com/repos/laravel/framework/hooks","issue_events_url":"https://api.github.com/repos/laravel/framework/issues/events{/number}","events_url":"https://api.github.com/repos/laravel/framework/events","assignees_url":"https://api.github.com/repos/laravel/framework/assignees{/user}","branches_url":"https://api.github.com/repos/laravel/framework/branches{/branch}","tags_url":"https://api.github.com/repos/laravel/framework/tags","blobs_url":"https://api.github.com/repos/laravel/framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laravel/framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laravel/framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/laravel/framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laravel/framework/statuses/{sha}","languages_url":"https://api.github.com/repos/laravel/framework/languages","stargazers_url":"https://api.github.com/repos/laravel/framework/stargazers","contributors_url":"https://api.github.com/repos/laravel/framework/contributors","subscribers_url":"https://api.github.com/repos/laravel/framework/subscribers","subscription_url":"https://api.github.com/repos/laravel/framework/subscription","commits_url":"https://api.github.com/repos/laravel/framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/laravel/framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/laravel/framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/laravel/framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/laravel/framework/contents/{+path}","compare_url":"https://api.github.com/repos/laravel/framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laravel/framework/merges","archive_url":"https://api.github.com/repos/laravel/framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laravel/framework/downloads","issues_url":"https://api.github.com/repos/laravel/framework/issues{/number}","pulls_url":"https://api.github.com/repos/laravel/framework/pulls{/number}","milestones_url":"https://api.github.com/repos/laravel/framework/milestones{/number}","notifications_url":"https://api.github.com/repos/laravel/framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laravel/framework/labels{/name}","releases_url":"https://api.github.com/repos/laravel/framework/releases{/id}","created_at":"2013-01-10T21:27:28Z","updated_at":"2015-04-04T14:35:56Z","pushed_at":"2015-04-05T01:59:05Z","git_url":"git://github.com/laravel/framework.git","ssh_url":"git@github.com:laravel/framework.git","clone_url":"https://github.com/laravel/framework.git","svn_url":"https://github.com/laravel/framework","homepage":"http://laravel.com","size":62020,"stargazers_count":3398,"watchers_count":3398,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1859,"mirror_url":null,"open_issues_count":98,"forks":1859,"open_issues":98,"watchers":3398,"default_branch":"5.0"}},"_links":{"self":{"href":"https://api.github.com/repos/laravel/framework/pulls/8278"},"html":{"href":"https://github.com/laravel/framework/pull/8278"},"issue":{"href":"https://api.github.com/repos/laravel/framework/issues/8278"},"comments":{"href":"https://api.github.com/repos/laravel/framework/issues/8278/comments"},"review_comments":{"href":"https://api.github.com/repos/laravel/framework/pulls/8278/comments"},"review_comment":{"href":"https://api.github.com/repos/laravel/framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/laravel/framework/pulls/8278/commits"},"statuses":{"href":"https://api.github.com/repos/laravel/framework/statuses/572877e4f30bee54d00e85412f411ecbe8aeb83a"}}}}