{"action":"opened","number":21045,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/21045","id":40974431,"html_url":"https://github.com/rails/rails/pull/21045","diff_url":"https://github.com/rails/rails/pull/21045.diff","patch_url":"https://github.com/rails/rails/pull/21045.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/21045","number":21045,"state":"open","locked":false,"title":"Add parameter filter capability for reditect locations","user":{"login":"repinel","id":1685896,"avatar_url":"https://avatars.githubusercontent.com/u/1685896?v=3","gravatar_id":"","url":"https://api.github.com/users/repinel","html_url":"https://github.com/repinel","followers_url":"https://api.github.com/users/repinel/followers","following_url":"https://api.github.com/users/repinel/following{/other_user}","gists_url":"https://api.github.com/users/repinel/gists{/gist_id}","starred_url":"https://api.github.com/users/repinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repinel/subscriptions","organizations_url":"https://api.github.com/users/repinel/orgs","repos_url":"https://api.github.com/users/repinel/repos","events_url":"https://api.github.com/users/repinel/events{/privacy}","received_events_url":"https://api.github.com/users/repinel/received_events","type":"User","site_admin":false},"body":"This is a follow up of #14055 taking in consideration @jeremy's comments.\r\n\r\nIt uses the `config.parameter_filter` to match what needs to be filtered. The result would be like this:\r\n\r\n```\r\nRedirected to http://secret.foo.bar?username=roque&password=[FILTERED]\r\n```\r\n\r\nBy security default, if no filter is provided, it filters all parameters.\r\n\r\n/cc @trevorturk","created_at":"2015-07-28T04:30:44Z","updated_at":"2015-07-28T04:30:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/21045/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/21045/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/21045/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/5778fa587b61623715f21dd641d8e28b1cd3a228","head":{"label":"repinel:filter-redirect-params","ref":"filter-redirect-params","sha":"5778fa587b61623715f21dd641d8e28b1cd3a228","user":{"login":"repinel","id":1685896,"avatar_url":"https://avatars.githubusercontent.com/u/1685896?v=3","gravatar_id":"","url":"https://api.github.com/users/repinel","html_url":"https://github.com/repinel","followers_url":"https://api.github.com/users/repinel/followers","following_url":"https://api.github.com/users/repinel/following{/other_user}","gists_url":"https://api.github.com/users/repinel/gists{/gist_id}","starred_url":"https://api.github.com/users/repinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repinel/subscriptions","organizations_url":"https://api.github.com/users/repinel/orgs","repos_url":"https://api.github.com/users/repinel/repos","events_url":"https://api.github.com/users/repinel/events{/privacy}","received_events_url":"https://api.github.com/users/repinel/received_events","type":"User","site_admin":false},"repo":{"id":34342083,"name":"rails","full_name":"repinel/rails","owner":{"login":"repinel","id":1685896,"avatar_url":"https://avatars.githubusercontent.com/u/1685896?v=3","gravatar_id":"","url":"https://api.github.com/users/repinel","html_url":"https://github.com/repinel","followers_url":"https://api.github.com/users/repinel/followers","following_url":"https://api.github.com/users/repinel/following{/other_user}","gists_url":"https://api.github.com/users/repinel/gists{/gist_id}","starred_url":"https://api.github.com/users/repinel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/repinel/subscriptions","organizations_url":"https://api.github.com/users/repinel/orgs","repos_url":"https://api.github.com/users/repinel/repos","events_url":"https://api.github.com/users/repinel/events{/privacy}","received_events_url":"https://api.github.com/users/repinel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/repinel/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/repinel/rails","forks_url":"https://api.github.com/repos/repinel/rails/forks","keys_url":"https://api.github.com/repos/repinel/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/repinel/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/repinel/rails/teams","hooks_url":"https://api.github.com/repos/repinel/rails/hooks","issue_events_url":"https://api.github.com/repos/repinel/rails/issues/events{/number}","events_url":"https://api.github.com/repos/repinel/rails/events","assignees_url":"https://api.github.com/repos/repinel/rails/assignees{/user}","branches_url":"https://api.github.com/repos/repinel/rails/branches{/branch}","tags_url":"https://api.github.com/repos/repinel/rails/tags","blobs_url":"https://api.github.com/repos/repinel/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/repinel/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/repinel/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/repinel/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/repinel/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/repinel/rails/languages","stargazers_url":"https://api.github.com/repos/repinel/rails/stargazers","contributors_url":"https://api.github.com/repos/repinel/rails/contributors","subscribers_url":"https://api.github.com/repos/repinel/rails/subscribers","subscription_url":"https://api.github.com/repos/repinel/rails/subscription","commits_url":"https://api.github.com/repos/repinel/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/repinel/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/repinel/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/repinel/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/repinel/rails/contents/{+path}","compare_url":"https://api.github.com/repos/repinel/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/repinel/rails/merges","archive_url":"https://api.github.com/repos/repinel/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/repinel/rails/downloads","issues_url":"https://api.github.com/repos/repinel/rails/issues{/number}","pulls_url":"https://api.github.com/repos/repinel/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/repinel/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/repinel/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/repinel/rails/labels{/name}","releases_url":"https://api.github.com/repos/repinel/rails/releases{/id}","created_at":"2015-04-21T17:34:45Z","updated_at":"2015-04-27T15:33:23Z","pushed_at":"2015-07-28T04:29:05Z","git_url":"git://github.com/repinel/rails.git","ssh_url":"git@github.com:repinel/rails.git","clone_url":"https://github.com/repinel/rails.git","svn_url":"https://github.com/repinel/rails","homepage":"http://rubyonrails.org","size":144770,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"rails:master","ref":"master","sha":"32b0db266ced3f370d4e989c93a074002153a1c1","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","created_at":"2008-04-11T02:19:47Z","updated_at":"2015-07-28T03:56:28Z","pushed_at":"2015-07-28T04:30:45Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":434357,"stargazers_count":27041,"watchers_count":27041,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10836,"mirror_url":null,"open_issues_count":876,"forks":10836,"open_issues":876,"watchers":27041,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/21045"},"html":{"href":"https://github.com/rails/rails/pull/21045"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/21045"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/21045/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/21045/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/21045/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/5778fa587b61623715f21dd641d8e28b1cd3a228"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":64,"deletions":2,"changed_files":4}}