{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9","id":69974154,"html_url":"https://github.com/ezyang/csrf-magic/pull/9","diff_url":"https://github.com/ezyang/csrf-magic/pull/9.diff","patch_url":"https://github.com/ezyang/csrf-magic/pull/9.patch","issue_url":"https://api.github.com/repos/ezyang/csrf-magic/issues/9","number":9,"state":"closed","locked":false,"title":"Update csrf-magic.php","user":{"login":"preexo","id":1478410,"avatar_url":"https://avatars.githubusercontent.com/u/1478410?v=3","gravatar_id":"","url":"https://api.github.com/users/preexo","html_url":"https://github.com/preexo","followers_url":"https://api.github.com/users/preexo/followers","following_url":"https://api.github.com/users/preexo/following{/other_user}","gists_url":"https://api.github.com/users/preexo/gists{/gist_id}","starred_url":"https://api.github.com/users/preexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preexo/subscriptions","organizations_url":"https://api.github.com/users/preexo/orgs","repos_url":"https://api.github.com/users/preexo/repos","events_url":"https://api.github.com/users/preexo/events{/privacy}","received_events_url":"https://api.github.com/users/preexo/received_events","type":"User","site_admin":false},"body":"I am using this libary in a project and saw that there are warnings every now and then since the index IP_ADDRESS doesn't always seem to be set.","created_at":"2016-05-13T10:24:37Z","updated_at":"2016-05-13T10:25:26Z","closed_at":"2016-05-13T10:25:26Z","merged_at":null,"merge_commit_sha":"053ae7c49d3a1c6773daebd630935fd75ffa0ab9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ezyang/csrf-magic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezyang/csrf-magic/issues/9/comments","statuses_url":"https://api.github.com/repos/ezyang/csrf-magic/statuses/0b4526fb57676e2c62737964bebc7f29ab78b258","head":{"label":"preexo:add-check-if-IP-index-exists","ref":"add-check-if-IP-index-exists","sha":"0b4526fb57676e2c62737964bebc7f29ab78b258","user":{"login":"preexo","id":1478410,"avatar_url":"https://avatars.githubusercontent.com/u/1478410?v=3","gravatar_id":"","url":"https://api.github.com/users/preexo","html_url":"https://github.com/preexo","followers_url":"https://api.github.com/users/preexo/followers","following_url":"https://api.github.com/users/preexo/following{/other_user}","gists_url":"https://api.github.com/users/preexo/gists{/gist_id}","starred_url":"https://api.github.com/users/preexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preexo/subscriptions","organizations_url":"https://api.github.com/users/preexo/orgs","repos_url":"https://api.github.com/users/preexo/repos","events_url":"https://api.github.com/users/preexo/events{/privacy}","received_events_url":"https://api.github.com/users/preexo/received_events","type":"User","site_admin":false},"repo":{"id":58728285,"name":"csrf-magic","full_name":"preexo/csrf-magic","owner":{"login":"preexo","id":1478410,"avatar_url":"https://avatars.githubusercontent.com/u/1478410?v=3","gravatar_id":"","url":"https://api.github.com/users/preexo","html_url":"https://github.com/preexo","followers_url":"https://api.github.com/users/preexo/followers","following_url":"https://api.github.com/users/preexo/following{/other_user}","gists_url":"https://api.github.com/users/preexo/gists{/gist_id}","starred_url":"https://api.github.com/users/preexo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/preexo/subscriptions","organizations_url":"https://api.github.com/users/preexo/orgs","repos_url":"https://api.github.com/users/preexo/repos","events_url":"https://api.github.com/users/preexo/events{/privacy}","received_events_url":"https://api.github.com/users/preexo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/preexo/csrf-magic","description":"Automatic CSRF protection for PHP applications","fork":true,"url":"https://api.github.com/repos/preexo/csrf-magic","forks_url":"https://api.github.com/repos/preexo/csrf-magic/forks","keys_url":"https://api.github.com/repos/preexo/csrf-magic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/preexo/csrf-magic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/preexo/csrf-magic/teams","hooks_url":"https://api.github.com/repos/preexo/csrf-magic/hooks","issue_events_url":"https://api.github.com/repos/preexo/csrf-magic/issues/events{/number}","events_url":"https://api.github.com/repos/preexo/csrf-magic/events","assignees_url":"https://api.github.com/repos/preexo/csrf-magic/assignees{/user}","branches_url":"https://api.github.com/repos/preexo/csrf-magic/branches{/branch}","tags_url":"https://api.github.com/repos/preexo/csrf-magic/tags","blobs_url":"https://api.github.com/repos/preexo/csrf-magic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/preexo/csrf-magic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/preexo/csrf-magic/git/refs{/sha}","trees_url":"https://api.github.com/repos/preexo/csrf-magic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/preexo/csrf-magic/statuses/{sha}","languages_url":"https://api.github.com/repos/preexo/csrf-magic/languages","stargazers_url":"https://api.github.com/repos/preexo/csrf-magic/stargazers","contributors_url":"https://api.github.com/repos/preexo/csrf-magic/contributors","subscribers_url":"https://api.github.com/repos/preexo/csrf-magic/subscribers","subscription_url":"https://api.github.com/repos/preexo/csrf-magic/subscription","commits_url":"https://api.github.com/repos/preexo/csrf-magic/commits{/sha}","git_commits_url":"https://api.github.com/repos/preexo/csrf-magic/git/commits{/sha}","comments_url":"https://api.github.com/repos/preexo/csrf-magic/comments{/number}","issue_comment_url":"https://api.github.com/repos/preexo/csrf-magic/issues/comments{/number}","contents_url":"https://api.github.com/repos/preexo/csrf-magic/contents/{+path}","compare_url":"https://api.github.com/repos/preexo/csrf-magic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/preexo/csrf-magic/merges","archive_url":"https://api.github.com/repos/preexo/csrf-magic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/preexo/csrf-magic/downloads","issues_url":"https://api.github.com/repos/preexo/csrf-magic/issues{/number}","pulls_url":"https://api.github.com/repos/preexo/csrf-magic/pulls{/number}","milestones_url":"https://api.github.com/repos/preexo/csrf-magic/milestones{/number}","notifications_url":"https://api.github.com/repos/preexo/csrf-magic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/preexo/csrf-magic/labels{/name}","releases_url":"https://api.github.com/repos/preexo/csrf-magic/releases{/id}","deployments_url":"https://api.github.com/repos/preexo/csrf-magic/deployments","created_at":"2016-05-13T10:19:10Z","updated_at":"2016-05-13T10:19:10Z","pushed_at":"2016-05-13T10:23:04Z","git_url":"git://github.com/preexo/csrf-magic.git","ssh_url":"git@github.com:preexo/csrf-magic.git","clone_url":"https://github.com/preexo/csrf-magic.git","svn_url":"https://github.com/preexo/csrf-magic","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ezyang:master","ref":"master","sha":"7365929a9e4718e41e181d867e7750abd8ae1416","user":{"login":"ezyang","id":13564,"avatar_url":"https://avatars.githubusercontent.com/u/13564?v=3","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},"repo":{"id":11468755,"name":"csrf-magic","full_name":"ezyang/csrf-magic","owner":{"login":"ezyang","id":13564,"avatar_url":"https://avatars.githubusercontent.com/u/13564?v=3","gravatar_id":"","url":"https://api.github.com/users/ezyang","html_url":"https://github.com/ezyang","followers_url":"https://api.github.com/users/ezyang/followers","following_url":"https://api.github.com/users/ezyang/following{/other_user}","gists_url":"https://api.github.com/users/ezyang/gists{/gist_id}","starred_url":"https://api.github.com/users/ezyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezyang/subscriptions","organizations_url":"https://api.github.com/users/ezyang/orgs","repos_url":"https://api.github.com/users/ezyang/repos","events_url":"https://api.github.com/users/ezyang/events{/privacy}","received_events_url":"https://api.github.com/users/ezyang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ezyang/csrf-magic","description":"Automatic CSRF protection for PHP applications","fork":false,"url":"https://api.github.com/repos/ezyang/csrf-magic","forks_url":"https://api.github.com/repos/ezyang/csrf-magic/forks","keys_url":"https://api.github.com/repos/ezyang/csrf-magic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezyang/csrf-magic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezyang/csrf-magic/teams","hooks_url":"https://api.github.com/repos/ezyang/csrf-magic/hooks","issue_events_url":"https://api.github.com/repos/ezyang/csrf-magic/issues/events{/number}","events_url":"https://api.github.com/repos/ezyang/csrf-magic/events","assignees_url":"https://api.github.com/repos/ezyang/csrf-magic/assignees{/user}","branches_url":"https://api.github.com/repos/ezyang/csrf-magic/branches{/branch}","tags_url":"https://api.github.com/repos/ezyang/csrf-magic/tags","blobs_url":"https://api.github.com/repos/ezyang/csrf-magic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezyang/csrf-magic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezyang/csrf-magic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezyang/csrf-magic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezyang/csrf-magic/statuses/{sha}","languages_url":"https://api.github.com/repos/ezyang/csrf-magic/languages","stargazers_url":"https://api.github.com/repos/ezyang/csrf-magic/stargazers","contributors_url":"https://api.github.com/repos/ezyang/csrf-magic/contributors","subscribers_url":"https://api.github.com/repos/ezyang/csrf-magic/subscribers","subscription_url":"https://api.github.com/repos/ezyang/csrf-magic/subscription","commits_url":"https://api.github.com/repos/ezyang/csrf-magic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezyang/csrf-magic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezyang/csrf-magic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezyang/csrf-magic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezyang/csrf-magic/contents/{+path}","compare_url":"https://api.github.com/repos/ezyang/csrf-magic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezyang/csrf-magic/merges","archive_url":"https://api.github.com/repos/ezyang/csrf-magic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezyang/csrf-magic/downloads","issues_url":"https://api.github.com/repos/ezyang/csrf-magic/issues{/number}","pulls_url":"https://api.github.com/repos/ezyang/csrf-magic/pulls{/number}","milestones_url":"https://api.github.com/repos/ezyang/csrf-magic/milestones{/number}","notifications_url":"https://api.github.com/repos/ezyang/csrf-magic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezyang/csrf-magic/labels{/name}","releases_url":"https://api.github.com/repos/ezyang/csrf-magic/releases{/id}","deployments_url":"https://api.github.com/repos/ezyang/csrf-magic/deployments","created_at":"2013-07-17T06:16:29Z","updated_at":"2016-05-11T21:47:09Z","pushed_at":"2016-05-13T10:24:38Z","git_url":"git://github.com/ezyang/csrf-magic.git","ssh_url":"git@github.com:ezyang/csrf-magic.git","clone_url":"https://github.com/ezyang/csrf-magic.git","svn_url":"https://github.com/ezyang/csrf-magic","homepage":null,"size":69,"stargazers_count":19,"watchers_count":19,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9"},"html":{"href":"https://github.com/ezyang/csrf-magic/pull/9"},"issue":{"href":"https://api.github.com/repos/ezyang/csrf-magic/issues/9"},"comments":{"href":"https://api.github.com/repos/ezyang/csrf-magic/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ezyang/csrf-magic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezyang/csrf-magic/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ezyang/csrf-magic/statuses/0b4526fb57676e2c62737964bebc7f29ab78b258"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":44,"deletions":19,"changed_files":1}}