{"action":"reopened","number":268,"pull_request":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268","id":31441890,"html_url":"https://github.com/glittergallery/GlitterGallery/pull/268","diff_url":"https://github.com/glittergallery/GlitterGallery/pull/268.diff","patch_url":"https://github.com/glittergallery/GlitterGallery/pull/268.patch","issue_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268","number":268,"state":"open","locked":false,"title":"Solves unprotected redirect warning on hakiri","user":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"body":"Hakiri warnings seemed pretty valid. \r\nAdding :only_path => true wouldn't work because it needs hash table. Read [here](https://www.owasp.org/index.php/Ruby_on_Rails_Cheatsheet#Redirects_and_Forwards)\r\nFollowing the same blog, I added a function which raises error if path to which we are redirecting doesn't matches the regular expression patterns","created_at":"2015-03-18T15:47:54Z","updated_at":"2015-03-18T16:24:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efef84219054b65beacb606485b16c08c32ebfd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268/commits","review_comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268/comments","review_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268/comments","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/999172280470b33bf2097f7693fbdf33d70b3859","head":{"label":"sonalkr132:redirect_to","ref":"redirect_to","sha":"999172280470b33bf2097f7693fbdf33d70b3859","user":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"repo":{"id":31713134,"name":"GlitterGallery","full_name":"sonalkr132/GlitterGallery","owner":{"login":"sonalkr132","id":7680662,"avatar_url":"https://avatars.githubusercontent.com/u/7680662?v=3","gravatar_id":"","url":"https://api.github.com/users/sonalkr132","html_url":"https://github.com/sonalkr132","followers_url":"https://api.github.com/users/sonalkr132/followers","following_url":"https://api.github.com/users/sonalkr132/following{/other_user}","gists_url":"https://api.github.com/users/sonalkr132/gists{/gist_id}","starred_url":"https://api.github.com/users/sonalkr132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonalkr132/subscriptions","organizations_url":"https://api.github.com/users/sonalkr132/orgs","repos_url":"https://api.github.com/users/sonalkr132/repos","events_url":"https://api.github.com/users/sonalkr132/events{/privacy}","received_events_url":"https://api.github.com/users/sonalkr132/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sonalkr132/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":true,"url":"https://api.github.com/repos/sonalkr132/GlitterGallery","forks_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/forks","keys_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/events","assignees_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/merges","archive_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/sonalkr132/GlitterGallery/releases{/id}","created_at":"2015-03-05T12:41:04Z","updated_at":"2015-03-15T03:41:52Z","pushed_at":"2015-03-18T16:19:50Z","git_url":"git://github.com/sonalkr132/GlitterGallery.git","ssh_url":"git@github.com:sonalkr132/GlitterGallery.git","clone_url":"https://github.com/sonalkr132/GlitterGallery.git","svn_url":"https://github.com/sonalkr132/GlitterGallery","homepage":"","size":27042,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"glittergallery:master","ref":"master","sha":"b10f971e59cf9ae7699d0fe54a211886c0f09ac3","user":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"repo":{"id":4059120,"name":"GlitterGallery","full_name":"glittergallery/GlitterGallery","owner":{"login":"glittergallery","id":6554891,"avatar_url":"https://avatars.githubusercontent.com/u/6554891?v=3","gravatar_id":"","url":"https://api.github.com/users/glittergallery","html_url":"https://github.com/glittergallery","followers_url":"https://api.github.com/users/glittergallery/followers","following_url":"https://api.github.com/users/glittergallery/following{/other_user}","gists_url":"https://api.github.com/users/glittergallery/gists{/gist_id}","starred_url":"https://api.github.com/users/glittergallery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glittergallery/subscriptions","organizations_url":"https://api.github.com/users/glittergallery/orgs","repos_url":"https://api.github.com/users/glittergallery/repos","events_url":"https://api.github.com/users/glittergallery/events{/privacy}","received_events_url":"https://api.github.com/users/glittergallery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/glittergallery/GlitterGallery","description":"Share, collect feedback on, and view/manage design iterations.","fork":false,"url":"https://api.github.com/repos/glittergallery/GlitterGallery","forks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/forks","keys_url":"https://api.github.com/repos/glittergallery/GlitterGallery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/glittergallery/GlitterGallery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/glittergallery/GlitterGallery/teams","hooks_url":"https://api.github.com/repos/glittergallery/GlitterGallery/hooks","issue_events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/events{/number}","events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/events","assignees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/assignees{/user}","branches_url":"https://api.github.com/repos/glittergallery/GlitterGallery/branches{/branch}","tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/tags","blobs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/refs{/sha}","trees_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/{sha}","languages_url":"https://api.github.com/repos/glittergallery/GlitterGallery/languages","stargazers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/stargazers","contributors_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contributors","subscribers_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscribers","subscription_url":"https://api.github.com/repos/glittergallery/GlitterGallery/subscription","commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/commits{/sha}","git_commits_url":"https://api.github.com/repos/glittergallery/GlitterGallery/git/commits{/sha}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/comments{/number}","issue_comment_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/comments{/number}","contents_url":"https://api.github.com/repos/glittergallery/GlitterGallery/contents/{+path}","compare_url":"https://api.github.com/repos/glittergallery/GlitterGallery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/glittergallery/GlitterGallery/merges","archive_url":"https://api.github.com/repos/glittergallery/GlitterGallery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/glittergallery/GlitterGallery/downloads","issues_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues{/number}","pulls_url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls{/number}","milestones_url":"https://api.github.com/repos/glittergallery/GlitterGallery/milestones{/number}","notifications_url":"https://api.github.com/repos/glittergallery/GlitterGallery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/glittergallery/GlitterGallery/labels{/name}","releases_url":"https://api.github.com/repos/glittergallery/GlitterGallery/releases{/id}","created_at":"2012-04-18T01:39:38Z","updated_at":"2015-03-18T15:10:02Z","pushed_at":"2015-03-18T15:10:02Z","git_url":"git://github.com/glittergallery/GlitterGallery.git","ssh_url":"git@github.com:glittergallery/GlitterGallery.git","clone_url":"https://github.com/glittergallery/GlitterGallery.git","svn_url":"https://github.com/glittergallery/GlitterGallery","homepage":"","size":28615,"stargazers_count":41,"watchers_count":41,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":32,"forks":44,"open_issues":32,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268"},"html":{"href":"https://github.com/glittergallery/GlitterGallery/pull/268"},"issue":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268"},"comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268/comments"},"review_comments":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268/comments"},"review_comment":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268/commits"},"statuses":{"href":"https://api.github.com/repos/glittergallery/GlitterGallery/statuses/999172280470b33bf2097f7693fbdf33d70b3859"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":21,"deletions":15,"changed_files":4}}