{"action":"created","comment":{"url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/comments/73194118","id":73194118,"diff_hunk":"@@ -36,14 +36,14 @@ class csrfProtector\n \t\t * flag for cross origin/same origin request\n \t\t * @var bool\n \t\t */\n-\t\tprivate static $isSameOrigin = true;\n+\t\tprotected static $isSameOrigin = true;\n \n \t\t/*\n \t\t * Variable: $isValidHTML\n \t\t * flag to check if output file is a valid HTML or not\n \t\t * @var bool\n \t\t */\n-\t\tprivate static $isValidHTML = false;\n+\t\tprotected static $isValidHTML = false;","path":"libs/csrf/csrfprotector.php","position":13,"original_position":13,"commit_id":"015f2393d25cd15627854ba705a5f8b24a852cda","original_commit_id":"015f2393d25cd15627854ba705a5f8b24a852cda","user":{"login":"mebjas","id":3007365,"avatar_url":"https://avatars.githubusercontent.com/u/3007365?v=3","gravatar_id":"","url":"https://api.github.com/users/mebjas","html_url":"https://github.com/mebjas","followers_url":"https://api.github.com/users/mebjas/followers","following_url":"https://api.github.com/users/mebjas/following{/other_user}","gists_url":"https://api.github.com/users/mebjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mebjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebjas/subscriptions","organizations_url":"https://api.github.com/users/mebjas/orgs","repos_url":"https://api.github.com/users/mebjas/repos","events_url":"https://api.github.com/users/mebjas/events{/privacy}","received_events_url":"https://api.github.com/users/mebjas/received_events","type":"User","site_admin":false},"body":"used internally hence pvt","created_at":"2016-08-02T16:56:16Z","updated_at":"2016-08-02T16:56:16Z","html_url":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49#discussion_r73194118","pull_request_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/comments/73194118"},"html":{"href":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49#discussion_r73194118"},"pull_request":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49","id":79638314,"html_url":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49","diff_url":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49.diff","patch_url":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49.patch","issue_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/49","number":49,"state":"open","locked":false,"title":"Use late static binding and protected methods for easy class extension","user":{"login":"thewhit","id":636353,"avatar_url":"https://avatars.githubusercontent.com/u/636353?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhit","html_url":"https://github.com/thewhit","followers_url":"https://api.github.com/users/thewhit/followers","following_url":"https://api.github.com/users/thewhit/following{/other_user}","gists_url":"https://api.github.com/users/thewhit/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhit/subscriptions","organizations_url":"https://api.github.com/users/thewhit/orgs","repos_url":"https://api.github.com/users/thewhit/repos","events_url":"https://api.github.com/users/thewhit/events{/privacy}","received_events_url":"https://api.github.com/users/thewhit/received_events","type":"User","site_admin":false},"body":"(instead of self/private) to allow class inheritance (i.e., to easily write your own logging function or override methods)\r\n\r\nFor instance, I'd like to customize how failedValidationAction() handles validation failures. To do this currently I have to duplicate the code for `refreshToken`,  `authorizePost`, and `failedValidationAction` to avoid my extended class from using the parent methods.","created_at":"2016-08-01T21:17:08Z","updated_at":"2016-08-02T16:56:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0d262e6fc34a77ffeb5060d15bb005d2aa5f8d7","assignee":{"login":"mebjas","id":3007365,"avatar_url":"https://avatars.githubusercontent.com/u/3007365?v=3","gravatar_id":"","url":"https://api.github.com/users/mebjas","html_url":"https://github.com/mebjas","followers_url":"https://api.github.com/users/mebjas/followers","following_url":"https://api.github.com/users/mebjas/following{/other_user}","gists_url":"https://api.github.com/users/mebjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mebjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebjas/subscriptions","organizations_url":"https://api.github.com/users/mebjas/orgs","repos_url":"https://api.github.com/users/mebjas/repos","events_url":"https://api.github.com/users/mebjas/events{/privacy}","received_events_url":"https://api.github.com/users/mebjas/received_events","type":"User","site_admin":false},"assignees":[{"login":"mebjas","id":3007365,"avatar_url":"https://avatars.githubusercontent.com/u/3007365?v=3","gravatar_id":"","url":"https://api.github.com/users/mebjas","html_url":"https://github.com/mebjas","followers_url":"https://api.github.com/users/mebjas/followers","following_url":"https://api.github.com/users/mebjas/following{/other_user}","gists_url":"https://api.github.com/users/mebjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mebjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebjas/subscriptions","organizations_url":"https://api.github.com/users/mebjas/orgs","repos_url":"https://api.github.com/users/mebjas/repos","events_url":"https://api.github.com/users/mebjas/events{/privacy}","received_events_url":"https://api.github.com/users/mebjas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49/commits","review_comments_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49/comments","review_comment_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/49/comments","statuses_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/statuses/015f2393d25cd15627854ba705a5f8b24a852cda","head":{"label":"thewhit:inheritance","ref":"inheritance","sha":"015f2393d25cd15627854ba705a5f8b24a852cda","user":{"login":"thewhit","id":636353,"avatar_url":"https://avatars.githubusercontent.com/u/636353?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhit","html_url":"https://github.com/thewhit","followers_url":"https://api.github.com/users/thewhit/followers","following_url":"https://api.github.com/users/thewhit/following{/other_user}","gists_url":"https://api.github.com/users/thewhit/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhit/subscriptions","organizations_url":"https://api.github.com/users/thewhit/orgs","repos_url":"https://api.github.com/users/thewhit/repos","events_url":"https://api.github.com/users/thewhit/events{/privacy}","received_events_url":"https://api.github.com/users/thewhit/received_events","type":"User","site_admin":false},"repo":{"id":64700443,"name":"CSRF-Protector-PHP","full_name":"thewhit/CSRF-Protector-PHP","owner":{"login":"thewhit","id":636353,"avatar_url":"https://avatars.githubusercontent.com/u/636353?v=3","gravatar_id":"","url":"https://api.github.com/users/thewhit","html_url":"https://github.com/thewhit","followers_url":"https://api.github.com/users/thewhit/followers","following_url":"https://api.github.com/users/thewhit/following{/other_user}","gists_url":"https://api.github.com/users/thewhit/gists{/gist_id}","starred_url":"https://api.github.com/users/thewhit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thewhit/subscriptions","organizations_url":"https://api.github.com/users/thewhit/orgs","repos_url":"https://api.github.com/users/thewhit/repos","events_url":"https://api.github.com/users/thewhit/events{/privacy}","received_events_url":"https://api.github.com/users/thewhit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thewhit/CSRF-Protector-PHP","description":"CSRF Protector library: standalone library for CSRF mitigation","fork":true,"url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP","forks_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/forks","keys_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/teams","hooks_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/hooks","issue_events_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/issues/events{/number}","events_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/events","assignees_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/assignees{/user}","branches_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/branches{/branch}","tags_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/tags","blobs_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/statuses/{sha}","languages_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/languages","stargazers_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/stargazers","contributors_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/contributors","subscribers_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/subscribers","subscription_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/subscription","commits_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/contents/{+path}","compare_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/merges","archive_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/downloads","issues_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/issues{/number}","pulls_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/pulls{/number}","milestones_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/milestones{/number}","notifications_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/labels{/name}","releases_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/releases{/id}","deployments_url":"https://api.github.com/repos/thewhit/CSRF-Protector-PHP/deployments","created_at":"2016-08-01T20:47:14Z","updated_at":"2016-08-01T20:47:15Z","pushed_at":"2016-08-01T21:37:12Z","git_url":"git://github.com/thewhit/CSRF-Protector-PHP.git","ssh_url":"git@github.com:thewhit/CSRF-Protector-PHP.git","clone_url":"https://github.com/thewhit/CSRF-Protector-PHP.git","svn_url":"https://github.com/thewhit/CSRF-Protector-PHP","homepage":"","size":225,"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":"master"}},"base":{"label":"mebjas:master","ref":"master","sha":"283a56bc4bb6c0382caf558ff27b93b18265b9f3","user":{"login":"mebjas","id":3007365,"avatar_url":"https://avatars.githubusercontent.com/u/3007365?v=3","gravatar_id":"","url":"https://api.github.com/users/mebjas","html_url":"https://github.com/mebjas","followers_url":"https://api.github.com/users/mebjas/followers","following_url":"https://api.github.com/users/mebjas/following{/other_user}","gists_url":"https://api.github.com/users/mebjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mebjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebjas/subscriptions","organizations_url":"https://api.github.com/users/mebjas/orgs","repos_url":"https://api.github.com/users/mebjas/repos","events_url":"https://api.github.com/users/mebjas/events{/privacy}","received_events_url":"https://api.github.com/users/mebjas/received_events","type":"User","site_admin":false},"repo":{"id":19346403,"name":"CSRF-Protector-PHP","full_name":"mebjas/CSRF-Protector-PHP","owner":{"login":"mebjas","id":3007365,"avatar_url":"https://avatars.githubusercontent.com/u/3007365?v=3","gravatar_id":"","url":"https://api.github.com/users/mebjas","html_url":"https://github.com/mebjas","followers_url":"https://api.github.com/users/mebjas/followers","following_url":"https://api.github.com/users/mebjas/following{/other_user}","gists_url":"https://api.github.com/users/mebjas/gists{/gist_id}","starred_url":"https://api.github.com/users/mebjas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mebjas/subscriptions","organizations_url":"https://api.github.com/users/mebjas/orgs","repos_url":"https://api.github.com/users/mebjas/repos","events_url":"https://api.github.com/users/mebjas/events{/privacy}","received_events_url":"https://api.github.com/users/mebjas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mebjas/CSRF-Protector-PHP","description":"CSRF Protector library: standalone library for CSRF mitigation","fork":false,"url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP","forks_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/forks","keys_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/teams","hooks_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/hooks","issue_events_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/events{/number}","events_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/events","assignees_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/assignees{/user}","branches_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/branches{/branch}","tags_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/tags","blobs_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/git/refs{/sha}","trees_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/statuses/{sha}","languages_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/languages","stargazers_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/stargazers","contributors_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/contributors","subscribers_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/subscribers","subscription_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/subscription","commits_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/commits{/sha}","git_commits_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/git/commits{/sha}","comments_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/comments{/number}","issue_comment_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/comments{/number}","contents_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/contents/{+path}","compare_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/merges","archive_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/downloads","issues_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues{/number}","pulls_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls{/number}","milestones_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/milestones{/number}","notifications_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/labels{/name}","releases_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/releases{/id}","deployments_url":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/deployments","created_at":"2014-05-01T14:16:46Z","updated_at":"2016-07-13T21:43:29Z","pushed_at":"2016-08-01T21:37:12Z","git_url":"git://github.com/mebjas/CSRF-Protector-PHP.git","ssh_url":"git@github.com:mebjas/CSRF-Protector-PHP.git","clone_url":"https://github.com/mebjas/CSRF-Protector-PHP.git","svn_url":"https://github.com/mebjas/CSRF-Protector-PHP","homepage":"","size":238,"stargazers_count":30,"watchers_count":30,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":8,"forks":21,"open_issues":8,"watchers":30,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49"},"html":{"href":"https://github.com/mebjas/CSRF-Protector-PHP/pull/49"},"issue":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/49"},"comments":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/mebjas/CSRF-Protector-PHP/statuses/015f2393d25cd15627854ba705a5f8b24a852cda"}}}}
{"actor":{"display_login":"mebjas"}}