{"action":"created","issue":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268","labels_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268/labels{/name}","comments_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268/comments","events_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268/events","html_url":"https://github.com/glittergallery/GlitterGallery/pull/268","id":62726207,"number":268,"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},"labels":[{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/labels/pending%20review","name":"pending review","color":"006b75"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-18T15:47:54Z","updated_at":"2015-05-08T10:14:50Z","closed_at":"2015-05-08T10:14:50Z","pull_request":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/pulls/268","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"},"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\r\n\r\nUPDATE:\r\nSuccessfully used rebase :smirk: "},"comment":{"url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/comments/100183503","html_url":"https://github.com/glittergallery/GlitterGallery/pull/268#issuecomment-100183503","issue_url":"https://api.github.com/repos/glittergallery/GlitterGallery/issues/268","id":100183503,"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},"created_at":"2015-05-08T10:14:50Z","updated_at":"2015-05-08T10:14:50Z","body":"using url rails way solved most of redirect warning, so we won't need this anymore."}}