payload: {"action":"created","comment":{"url":"https://api.github.com/repos/rapila/cms-base/pulls/comments/275116701","pull_request_review_id":226351699,"id":275116701,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI3NTExNjcwMQ==","diff_hunk":"@@ -14,6 +14,24 @@ public function __construct($aRequestPath) {\n \t\t}\n \t\t$this->oSession = Session::close();\n \t\t$this->oDocument = DocumentQuery::create()->findPk(intval($this->aPath[0]));\n+\t\t\n+\t\t$sIdPart = explode('.', $this->aPath[0])[0];\n+\t\tlist($id, $sHash) = explode('@', $sIdPart.'@');\n+\n+\t\tif(!empty($sHash)) {\n+\t\t\tif(!StringUtil::startsWith($this->oDocument->getImmutableUrlKey(), $sHash)) {\n+\t\t\t\t$aParams = array_filter($_GET, function($sKey) {","path":"modules/file/display_document/DisplayDocumentFileModule.php","position":10,"original_position":10,"commit_id":"7069f99f87dee608d6668b14f188baf0d5deba5e","original_commit_id":"7069f99f87dee608d6668b14f188baf0d5deba5e","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Processing form data without nonce verification.](https://app.codacy.com/app/sabberworm/cms-base/pullRequest?prid=3432297)","created_at":"2019-04-13T12:42:59Z","updated_at":"2019-04-13T12:42:59Z","html_url":"https://github.com/rapila/cms-base/pull/257#discussion_r275116701","pull_request_url":"https://api.github.com/repos/rapila/cms-base/pulls/257","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/comments/275116701"},"html":{"href":"https://github.com/rapila/cms-base/pull/257#discussion_r275116701"},"pull_request":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/257"}}},"pull_request":{"url":"https://api.github.com/repos/rapila/cms-base/pulls/257","id":270220277,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcwMjIwMjc3","html_url":"https://github.com/rapila/cms-base/pull/257","diff_url":"https://github.com/rapila/cms-base/pull/257.diff","patch_url":"https://github.com/rapila/cms-base/pull/257.patch","issue_url":"https://api.github.com/repos/rapila/cms-base/issues/257","number":257,"state":"open","locked":false,"title":"Improve browser cache of document requests","user":{"login":"sabberworm","id":47652,"node_id":"MDQ6VXNlcjQ3NjUy","avatar_url":"https://avatars2.githubusercontent.com/u/47652?v=4","gravatar_id":"","url":"https://api.github.com/users/sabberworm","html_url":"https://github.com/sabberworm","followers_url":"https://api.github.com/users/sabberworm/followers","following_url":"https://api.github.com/users/sabberworm/following{/other_user}","gists_url":"https://api.github.com/users/sabberworm/gists{/gist_id}","starred_url":"https://api.github.com/users/sabberworm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabberworm/subscriptions","organizations_url":"https://api.github.com/users/sabberworm/orgs","repos_url":"https://api.github.com/users/sabberworm/repos","events_url":"https://api.github.com/users/sabberworm/events{/privacy}","received_events_url":"https://api.github.com/users/sabberworm/received_events","type":"User","site_admin":false},"body":"TODO: Check compatibility w/ richtext-editor, we should adapt it to use links w/o the hash.","created_at":"2019-04-13T11:30:56Z","updated_at":"2019-04-13T12:42:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7efc08ff65c777d44b055c3df3ac04daafcde79f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"juergmessmer","id":374433,"node_id":"MDQ6VXNlcjM3NDQzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/374433?v=4","gravatar_id":"","url":"https://api.github.com/users/juergmessmer","html_url":"https://github.com/juergmessmer","followers_url":"https://api.github.com/users/juergmessmer/followers","following_url":"https://api.github.com/users/juergmessmer/following{/other_user}","gists_url":"https://api.github.com/users/juergmessmer/gists{/gist_id}","starred_url":"https://api.github.com/users/juergmessmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juergmessmer/subscriptions","organizations_url":"https://api.github.com/users/juergmessmer/orgs","repos_url":"https://api.github.com/users/juergmessmer/repos","events_url":"https://api.github.com/users/juergmessmer/events{/privacy}","received_events_url":"https://api.github.com/users/juergmessmer/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapila/cms-base/pulls/257/commits","review_comments_url":"https://api.github.com/repos/rapila/cms-base/pulls/257/comments","review_comment_url":"https://api.github.com/repos/rapila/cms-base/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapila/cms-base/issues/257/comments","statuses_url":"https://api.github.com/repos/rapila/cms-base/statuses/7069f99f87dee608d6668b14f188baf0d5deba5e","head":{"label":"rapila:document_hash_cashing","ref":"document_hash_cashing","sha":"7069f99f87dee608d6668b14f188baf0d5deba5e","user":{"login":"rapila","id":546760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0Njc2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/546760?v=4","gravatar_id":"","url":"https://api.github.com/users/rapila","html_url":"https://github.com/rapila","followers_url":"https://api.github.com/users/rapila/followers","following_url":"https://api.github.com/users/rapila/following{/other_user}","gists_url":"https://api.github.com/users/rapila/gists{/gist_id}","starred_url":"https://api.github.com/users/rapila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapila/subscriptions","organizations_url":"https://api.github.com/users/rapila/orgs","repos_url":"https://api.github.com/users/rapila/repos","events_url":"https://api.github.com/users/rapila/events{/privacy}","received_events_url":"https://api.github.com/users/rapila/received_events","type":"Organization","site_admin":false},"repo":{"id":1219004,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE5MDA0","name":"cms-base","full_name":"rapila/cms-base","private":false,"owner":{"login":"rapila","id":546760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0Njc2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/546760?v=4","gravatar_id":"","url":"https://api.github.com/users/rapila","html_url":"https://github.com/rapila","followers_url":"https://api.github.com/users/rapila/followers","following_url":"https://api.github.com/users/rapila/following{/other_user}","gists_url":"https://api.github.com/users/rapila/gists{/gist_id}","starred_url":"https://api.github.com/users/rapila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapila/subscriptions","organizations_url":"https://api.github.com/users/rapila/orgs","repos_url":"https://api.github.com/users/rapila/repos","events_url":"https://api.github.com/users/rapila/events{/privacy}","received_events_url":"https://api.github.com/users/rapila/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rapila/cms-base","description":"The rapila cms’ internals. Please file all issues here if they’re not directly related to a plugin or the sample site.","fork":false,"url":"https://api.github.com/repos/rapila/cms-base","forks_url":"https://api.github.com/repos/rapila/cms-base/forks","keys_url":"https://api.github.com/repos/rapila/cms-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapila/cms-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapila/cms-base/teams","hooks_url":"https://api.github.com/repos/rapila/cms-base/hooks","issue_events_url":"https://api.github.com/repos/rapila/cms-base/issues/events{/number}","events_url":"https://api.github.com/repos/rapila/cms-base/events","assignees_url":"https://api.github.com/repos/rapila/cms-base/assignees{/user}","branches_url":"https://api.github.com/repos/rapila/cms-base/branches{/branch}","tags_url":"https://api.github.com/repos/rapila/cms-base/tags","blobs_url":"https://api.github.com/repos/rapila/cms-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapila/cms-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapila/cms-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapila/cms-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapila/cms-base/statuses/{sha}","languages_url":"https://api.github.com/repos/rapila/cms-base/languages","stargazers_url":"https://api.github.com/repos/rapila/cms-base/stargazers","contributors_url":"https://api.github.com/repos/rapila/cms-base/contributors","subscribers_url":"https://api.github.com/repos/rapila/cms-base/subscribers","subscription_url":"https://api.github.com/repos/rapila/cms-base/subscription","commits_url":"https://api.github.com/repos/rapila/cms-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapila/cms-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapila/cms-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapila/cms-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapila/cms-base/contents/{+path}","compare_url":"https://api.github.com/repos/rapila/cms-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapila/cms-base/merges","archive_url":"https://api.github.com/repos/rapila/cms-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapila/cms-base/downloads","issues_url":"https://api.github.com/repos/rapila/cms-base/issues{/number}","pulls_url":"https://api.github.com/repos/rapila/cms-base/pulls{/number}","milestones_url":"https://api.github.com/repos/rapila/cms-base/milestones{/number}","notifications_url":"https://api.github.com/repos/rapila/cms-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapila/cms-base/labels{/name}","releases_url":"https://api.github.com/repos/rapila/cms-base/releases{/id}","deployments_url":"https://api.github.com/repos/rapila/cms-base/deployments","created_at":"2011-01-04T10:08:54Z","updated_at":"2019-02-06T16:23:52Z","pushed_at":"2019-04-13T11:30:57Z","git_url":"git://github.com/rapila/cms-base.git","ssh_url":"git@github.com:rapila/cms-base.git","clone_url":"https://github.com/rapila/cms-base.git","svn_url":"https://github.com/rapila/cms-base","homepage":"http://www.rapi.la","size":18852,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":50,"license":null,"forks":1,"open_issues":50,"watchers":3,"default_branch":"master"}},"base":{"label":"rapila:master","ref":"master","sha":"6220df1bdce18f87bf2b9bc5133ab7f062564500","user":{"login":"rapila","id":546760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0Njc2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/546760?v=4","gravatar_id":"","url":"https://api.github.com/users/rapila","html_url":"https://github.com/rapila","followers_url":"https://api.github.com/users/rapila/followers","following_url":"https://api.github.com/users/rapila/following{/other_user}","gists_url":"https://api.github.com/users/rapila/gists{/gist_id}","starred_url":"https://api.github.com/users/rapila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapila/subscriptions","organizations_url":"https://api.github.com/users/rapila/orgs","repos_url":"https://api.github.com/users/rapila/repos","events_url":"https://api.github.com/users/rapila/events{/privacy}","received_events_url":"https://api.github.com/users/rapila/received_events","type":"Organization","site_admin":false},"repo":{"id":1219004,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE5MDA0","name":"cms-base","full_name":"rapila/cms-base","private":false,"owner":{"login":"rapila","id":546760,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0Njc2MA==","avatar_url":"https://avatars3.githubusercontent.com/u/546760?v=4","gravatar_id":"","url":"https://api.github.com/users/rapila","html_url":"https://github.com/rapila","followers_url":"https://api.github.com/users/rapila/followers","following_url":"https://api.github.com/users/rapila/following{/other_user}","gists_url":"https://api.github.com/users/rapila/gists{/gist_id}","starred_url":"https://api.github.com/users/rapila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapila/subscriptions","organizations_url":"https://api.github.com/users/rapila/orgs","repos_url":"https://api.github.com/users/rapila/repos","events_url":"https://api.github.com/users/rapila/events{/privacy}","received_events_url":"https://api.github.com/users/rapila/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rapila/cms-base","description":"The rapila cms’ internals. Please file all issues here if they’re not directly related to a plugin or the sample site.","fork":false,"url":"https://api.github.com/repos/rapila/cms-base","forks_url":"https://api.github.com/repos/rapila/cms-base/forks","keys_url":"https://api.github.com/repos/rapila/cms-base/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapila/cms-base/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapila/cms-base/teams","hooks_url":"https://api.github.com/repos/rapila/cms-base/hooks","issue_events_url":"https://api.github.com/repos/rapila/cms-base/issues/events{/number}","events_url":"https://api.github.com/repos/rapila/cms-base/events","assignees_url":"https://api.github.com/repos/rapila/cms-base/assignees{/user}","branches_url":"https://api.github.com/repos/rapila/cms-base/branches{/branch}","tags_url":"https://api.github.com/repos/rapila/cms-base/tags","blobs_url":"https://api.github.com/repos/rapila/cms-base/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapila/cms-base/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapila/cms-base/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapila/cms-base/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapila/cms-base/statuses/{sha}","languages_url":"https://api.github.com/repos/rapila/cms-base/languages","stargazers_url":"https://api.github.com/repos/rapila/cms-base/stargazers","contributors_url":"https://api.github.com/repos/rapila/cms-base/contributors","subscribers_url":"https://api.github.com/repos/rapila/cms-base/subscribers","subscription_url":"https://api.github.com/repos/rapila/cms-base/subscription","commits_url":"https://api.github.com/repos/rapila/cms-base/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapila/cms-base/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapila/cms-base/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapila/cms-base/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapila/cms-base/contents/{+path}","compare_url":"https://api.github.com/repos/rapila/cms-base/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapila/cms-base/merges","archive_url":"https://api.github.com/repos/rapila/cms-base/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapila/cms-base/downloads","issues_url":"https://api.github.com/repos/rapila/cms-base/issues{/number}","pulls_url":"https://api.github.com/repos/rapila/cms-base/pulls{/number}","milestones_url":"https://api.github.com/repos/rapila/cms-base/milestones{/number}","notifications_url":"https://api.github.com/repos/rapila/cms-base/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapila/cms-base/labels{/name}","releases_url":"https://api.github.com/repos/rapila/cms-base/releases{/id}","deployments_url":"https://api.github.com/repos/rapila/cms-base/deployments","created_at":"2011-01-04T10:08:54Z","updated_at":"2019-02-06T16:23:52Z","pushed_at":"2019-04-13T11:30:57Z","git_url":"git://github.com/rapila/cms-base.git","ssh_url":"git@github.com:rapila/cms-base.git","clone_url":"https://github.com/rapila/cms-base.git","svn_url":"https://github.com/rapila/cms-base","homepage":"http://www.rapi.la","size":18852,"stargazers_count":3,"watchers_count":3,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":50,"license":null,"forks":1,"open_issues":50,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/257"},"html":{"href":"https://github.com/rapila/cms-base/pull/257"},"issue":{"href":"https://api.github.com/repos/rapila/cms-base/issues/257"},"comments":{"href":"https://api.github.com/repos/rapila/cms-base/issues/257/comments"},"review_comments":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/257/comments"},"review_comment":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapila/cms-base/pulls/257/commits"},"statuses":{"href":"https://api.github.com/repos/rapila/cms-base/statuses/7069f99f87dee608d6668b14f188baf0d5deba5e"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"codacy-bot"}}