{"action":"opened","number":3995,"pull_request":{"url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995","id":40678453,"html_url":"https://github.com/bcit-ci/CodeIgniter/pull/3995","diff_url":"https://github.com/bcit-ci/CodeIgniter/pull/3995.diff","patch_url":"https://github.com/bcit-ci/CodeIgniter/pull/3995.patch","issue_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3995","number":3995,"state":"open","locked":false,"title":"IP checking false positives and no IPv6 check","user":{"login":"rajatsharma94","id":9254904,"avatar_url":"https://avatars.githubusercontent.com/u/9254904?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatsharma94","html_url":"https://github.com/rajatsharma94","followers_url":"https://api.github.com/users/rajatsharma94/followers","following_url":"https://api.github.com/users/rajatsharma94/following{/other_user}","gists_url":"https://api.github.com/users/rajatsharma94/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatsharma94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatsharma94/subscriptions","organizations_url":"https://api.github.com/users/rajatsharma94/orgs","repos_url":"https://api.github.com/users/rajatsharma94/repos","events_url":"https://api.github.com/users/rajatsharma94/events{/privacy}","received_events_url":"https://api.github.com/users/rajatsharma94/received_events","type":"User","site_admin":false},"body":"The currently implemented method marks all IPs between 0.0.0.0 - 999.999.999.999 as valid IP Address. Which generates false positives as any IP after 255.255.255.255 is not a valid IP address.\r\n\r\nAlso, there is no check for IPv6 IP addresses.\r\n\r\nfilter_var() solves both the issues.","created_at":"2015-07-23T14:34:40Z","updated_at":"2015-07-23T14:34:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995/commits","review_comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995/comments","review_comment_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3995/comments","statuses_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/591166310919d1f46facf9e6b829d4dcf399bab6","head":{"label":"rajatsharma94:develop","ref":"develop","sha":"591166310919d1f46facf9e6b829d4dcf399bab6","user":{"login":"rajatsharma94","id":9254904,"avatar_url":"https://avatars.githubusercontent.com/u/9254904?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatsharma94","html_url":"https://github.com/rajatsharma94","followers_url":"https://api.github.com/users/rajatsharma94/followers","following_url":"https://api.github.com/users/rajatsharma94/following{/other_user}","gists_url":"https://api.github.com/users/rajatsharma94/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatsharma94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatsharma94/subscriptions","organizations_url":"https://api.github.com/users/rajatsharma94/orgs","repos_url":"https://api.github.com/users/rajatsharma94/repos","events_url":"https://api.github.com/users/rajatsharma94/events{/privacy}","received_events_url":"https://api.github.com/users/rajatsharma94/received_events","type":"User","site_admin":false},"repo":{"id":39390142,"name":"CodeIgniter","full_name":"rajatsharma94/CodeIgniter","owner":{"login":"rajatsharma94","id":9254904,"avatar_url":"https://avatars.githubusercontent.com/u/9254904?v=3","gravatar_id":"","url":"https://api.github.com/users/rajatsharma94","html_url":"https://github.com/rajatsharma94","followers_url":"https://api.github.com/users/rajatsharma94/followers","following_url":"https://api.github.com/users/rajatsharma94/following{/other_user}","gists_url":"https://api.github.com/users/rajatsharma94/gists{/gist_id}","starred_url":"https://api.github.com/users/rajatsharma94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajatsharma94/subscriptions","organizations_url":"https://api.github.com/users/rajatsharma94/orgs","repos_url":"https://api.github.com/users/rajatsharma94/repos","events_url":"https://api.github.com/users/rajatsharma94/events{/privacy}","received_events_url":"https://api.github.com/users/rajatsharma94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rajatsharma94/CodeIgniter","description":"","fork":true,"url":"https://api.github.com/repos/rajatsharma94/CodeIgniter","forks_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/forks","keys_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/events","assignees_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/merges","archive_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/rajatsharma94/CodeIgniter/releases{/id}","created_at":"2015-07-20T14:56:14Z","updated_at":"2015-07-23T13:23:10Z","pushed_at":"2015-07-23T14:32:13Z","git_url":"git://github.com/rajatsharma94/CodeIgniter.git","ssh_url":"git@github.com:rajatsharma94/CodeIgniter.git","clone_url":"https://github.com/rajatsharma94/CodeIgniter.git","svn_url":"https://github.com/rajatsharma94/CodeIgniter","homepage":"","size":41307,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"bcit-ci:develop","ref":"develop","sha":"56d346794306cc286288e82532f1e589f559ea91","user":{"login":"bcit-ci","id":8863432,"avatar_url":"https://avatars.githubusercontent.com/u/8863432?v=3","gravatar_id":"","url":"https://api.github.com/users/bcit-ci","html_url":"https://github.com/bcit-ci","followers_url":"https://api.github.com/users/bcit-ci/followers","following_url":"https://api.github.com/users/bcit-ci/following{/other_user}","gists_url":"https://api.github.com/users/bcit-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/bcit-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcit-ci/subscriptions","organizations_url":"https://api.github.com/users/bcit-ci/orgs","repos_url":"https://api.github.com/users/bcit-ci/repos","events_url":"https://api.github.com/users/bcit-ci/events{/privacy}","received_events_url":"https://api.github.com/users/bcit-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":2234102,"name":"CodeIgniter","full_name":"bcit-ci/CodeIgniter","owner":{"login":"bcit-ci","id":8863432,"avatar_url":"https://avatars.githubusercontent.com/u/8863432?v=3","gravatar_id":"","url":"https://api.github.com/users/bcit-ci","html_url":"https://github.com/bcit-ci","followers_url":"https://api.github.com/users/bcit-ci/followers","following_url":"https://api.github.com/users/bcit-ci/following{/other_user}","gists_url":"https://api.github.com/users/bcit-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/bcit-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcit-ci/subscriptions","organizations_url":"https://api.github.com/users/bcit-ci/orgs","repos_url":"https://api.github.com/users/bcit-ci/repos","events_url":"https://api.github.com/users/bcit-ci/events{/privacy}","received_events_url":"https://api.github.com/users/bcit-ci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bcit-ci/CodeIgniter","description":"Open Source PHP Framework (originally from EllisLab)","fork":false,"url":"https://api.github.com/repos/bcit-ci/CodeIgniter","forks_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/forks","keys_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/teams","hooks_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/hooks","issue_events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/events{/number}","events_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/events","assignees_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/assignees{/user}","branches_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/branches{/branch}","tags_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/tags","blobs_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/{sha}","languages_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/languages","stargazers_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/stargazers","contributors_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/contributors","subscribers_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/subscribers","subscription_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/subscription","commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/comments{/number}","contents_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/contents/{+path}","compare_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/merges","archive_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/downloads","issues_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues{/number}","pulls_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls{/number}","milestones_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/milestones{/number}","notifications_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/labels{/name}","releases_url":"https://api.github.com/repos/bcit-ci/CodeIgniter/releases{/id}","created_at":"2011-08-19T13:34:00Z","updated_at":"2015-07-23T14:26:02Z","pushed_at":"2015-07-23T13:37:52Z","git_url":"git://github.com/bcit-ci/CodeIgniter.git","ssh_url":"git@github.com:bcit-ci/CodeIgniter.git","clone_url":"https://github.com/bcit-ci/CodeIgniter.git","svn_url":"https://github.com/bcit-ci/CodeIgniter","homepage":"http://codeigniter.com/","size":75680,"stargazers_count":10308,"watchers_count":10308,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5327,"mirror_url":null,"open_issues_count":51,"forks":5327,"open_issues":51,"watchers":10308,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995"},"html":{"href":"https://github.com/bcit-ci/CodeIgniter/pull/3995"},"issue":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3995"},"comments":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/issues/3995/comments"},"review_comments":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995/comments"},"review_comment":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/pulls/3995/commits"},"statuses":{"href":"https://api.github.com/repos/bcit-ci/CodeIgniter/statuses/591166310919d1f46facf9e6b829d4dcf399bab6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":1,"deletions":1,"changed_files":1}}