{"action":"created","comment":{"url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/comments/175984145","pull_request_review_id":105606222,"id":175984145,"diff_hunk":"@@ -231,8 +231,16 @@ public static function buildPostBody($fields, $files, $boundary = null){\n \t\t$body = '';\r\n \t\t\r\n \t\tforeach($fields as $name => $value){\r\n-\t\t\t$body .= sprintf($part_field, $boundary, $name, $value);\r\n-\t\t\t$body .= \"{$value}\\r\\n\";\r\n+\t\t\t//checkboxes can have multiple values in an array.\r\n+\t\t\tif(is_array($value)){\r\n+\t\t\t\tforeach($value as $v){\r\n+\t\t\t\t\t$body .= sprintf($part_field, $boundary, \"{$name}[]\", $v);\r\n+\t\t\t\t\t$body .= \"{$v}\\r\\n\";\r\n+\t\t\t\t}\r\n+\t\t\t} else {\r\n+\t\t\t\t$body .= sprintf($part_field, $boundary, $name, $value);\r\n+\t\t\t\t$body .= \"{$value}\\r\\n\";\r","path":"src/Http/Request.php","position":14,"original_position":14,"commit_id":"500638f4322afee2be5658ee0a97c52a6a58068d","original_commit_id":"500638f4322afee2be5658ee0a97c52a6a58068d","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars1.githubusercontent.com/u/12626182?v=4","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Spaces must be used for alignment; tabs are not allowed","created_at":"2018-03-21T04:46:25Z","updated_at":"2018-03-21T04:46:25Z","html_url":"https://github.com/Athlon1600/php-proxy/pull/113#discussion_r175984145","pull_request_url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/comments/175984145"},"html":{"href":"https://github.com/Athlon1600/php-proxy/pull/113#discussion_r175984145"},"pull_request":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113"}}},"pull_request":{"url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113","id":176041235,"html_url":"https://github.com/Athlon1600/php-proxy/pull/113","diff_url":"https://github.com/Athlon1600/php-proxy/pull/113.diff","patch_url":"https://github.com/Athlon1600/php-proxy/pull/113.patch","issue_url":"https://api.github.com/repos/Athlon1600/php-proxy/issues/113","number":113,"state":"open","locked":false,"title":"Bug fix for multi-value checkboxes in form data.","user":{"login":"diffen","id":884719,"avatar_url":"https://avatars3.githubusercontent.com/u/884719?v=4","gravatar_id":"","url":"https://api.github.com/users/diffen","html_url":"https://github.com/diffen","followers_url":"https://api.github.com/users/diffen/followers","following_url":"https://api.github.com/users/diffen/following{/other_user}","gists_url":"https://api.github.com/users/diffen/gists{/gist_id}","starred_url":"https://api.github.com/users/diffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diffen/subscriptions","organizations_url":"https://api.github.com/users/diffen/orgs","repos_url":"https://api.github.com/users/diffen/repos","events_url":"https://api.github.com/users/diffen/events{/privacy}","received_events_url":"https://api.github.com/users/diffen/received_events","type":"User","site_admin":false},"body":"Checkboxes in form data can have multiple values. Currently the code errors out with \"converting array to string\" error. This commit fixes that.","created_at":"2018-03-19T22:19:46Z","updated_at":"2018-03-21T04:46:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ecf3c62105911fd113b94bf8b9bd9cfc7e9f627c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113/commits","review_comments_url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113/comments","review_comment_url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Athlon1600/php-proxy/issues/113/comments","statuses_url":"https://api.github.com/repos/Athlon1600/php-proxy/statuses/500638f4322afee2be5658ee0a97c52a6a58068d","head":{"label":"diffen:master","ref":"master","sha":"500638f4322afee2be5658ee0a97c52a6a58068d","user":{"login":"diffen","id":884719,"avatar_url":"https://avatars3.githubusercontent.com/u/884719?v=4","gravatar_id":"","url":"https://api.github.com/users/diffen","html_url":"https://github.com/diffen","followers_url":"https://api.github.com/users/diffen/followers","following_url":"https://api.github.com/users/diffen/following{/other_user}","gists_url":"https://api.github.com/users/diffen/gists{/gist_id}","starred_url":"https://api.github.com/users/diffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diffen/subscriptions","organizations_url":"https://api.github.com/users/diffen/orgs","repos_url":"https://api.github.com/users/diffen/repos","events_url":"https://api.github.com/users/diffen/events{/privacy}","received_events_url":"https://api.github.com/users/diffen/received_events","type":"User","site_admin":false},"repo":{"id":125927191,"name":"php-proxy","full_name":"diffen/php-proxy","owner":{"login":"diffen","id":884719,"avatar_url":"https://avatars3.githubusercontent.com/u/884719?v=4","gravatar_id":"","url":"https://api.github.com/users/diffen","html_url":"https://github.com/diffen","followers_url":"https://api.github.com/users/diffen/followers","following_url":"https://api.github.com/users/diffen/following{/other_user}","gists_url":"https://api.github.com/users/diffen/gists{/gist_id}","starred_url":"https://api.github.com/users/diffen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diffen/subscriptions","organizations_url":"https://api.github.com/users/diffen/orgs","repos_url":"https://api.github.com/users/diffen/repos","events_url":"https://api.github.com/users/diffen/events{/privacy}","received_events_url":"https://api.github.com/users/diffen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/diffen/php-proxy","description":"A web proxy script written in PHP and built as an alternative to Glype. ","fork":true,"url":"https://api.github.com/repos/diffen/php-proxy","forks_url":"https://api.github.com/repos/diffen/php-proxy/forks","keys_url":"https://api.github.com/repos/diffen/php-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diffen/php-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diffen/php-proxy/teams","hooks_url":"https://api.github.com/repos/diffen/php-proxy/hooks","issue_events_url":"https://api.github.com/repos/diffen/php-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/diffen/php-proxy/events","assignees_url":"https://api.github.com/repos/diffen/php-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/diffen/php-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/diffen/php-proxy/tags","blobs_url":"https://api.github.com/repos/diffen/php-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diffen/php-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diffen/php-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/diffen/php-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diffen/php-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/diffen/php-proxy/languages","stargazers_url":"https://api.github.com/repos/diffen/php-proxy/stargazers","contributors_url":"https://api.github.com/repos/diffen/php-proxy/contributors","subscribers_url":"https://api.github.com/repos/diffen/php-proxy/subscribers","subscription_url":"https://api.github.com/repos/diffen/php-proxy/subscription","commits_url":"https://api.github.com/repos/diffen/php-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/diffen/php-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/diffen/php-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/diffen/php-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/diffen/php-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/diffen/php-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diffen/php-proxy/merges","archive_url":"https://api.github.com/repos/diffen/php-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diffen/php-proxy/downloads","issues_url":"https://api.github.com/repos/diffen/php-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/diffen/php-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/diffen/php-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/diffen/php-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diffen/php-proxy/labels{/name}","releases_url":"https://api.github.com/repos/diffen/php-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/diffen/php-proxy/deployments","created_at":"2018-03-19T22:14:45Z","updated_at":"2018-03-21T04:46:18Z","pushed_at":"2018-03-21T04:46:17Z","git_url":"git://github.com/diffen/php-proxy.git","ssh_url":"git@github.com:diffen/php-proxy.git","clone_url":"https://github.com/diffen/php-proxy.git","svn_url":"https://github.com/diffen/php-proxy","homepage":"https://www.php-proxy.com","size":517,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Athlon1600:master","ref":"master","sha":"0422e4ddb413abce9243c6bafefbc4f1016d2295","user":{"login":"Athlon1600","id":1063088,"avatar_url":"https://avatars2.githubusercontent.com/u/1063088?v=4","gravatar_id":"","url":"https://api.github.com/users/Athlon1600","html_url":"https://github.com/Athlon1600","followers_url":"https://api.github.com/users/Athlon1600/followers","following_url":"https://api.github.com/users/Athlon1600/following{/other_user}","gists_url":"https://api.github.com/users/Athlon1600/gists{/gist_id}","starred_url":"https://api.github.com/users/Athlon1600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Athlon1600/subscriptions","organizations_url":"https://api.github.com/users/Athlon1600/orgs","repos_url":"https://api.github.com/users/Athlon1600/repos","events_url":"https://api.github.com/users/Athlon1600/events{/privacy}","received_events_url":"https://api.github.com/users/Athlon1600/received_events","type":"User","site_admin":false},"repo":{"id":28826953,"name":"php-proxy","full_name":"Athlon1600/php-proxy","owner":{"login":"Athlon1600","id":1063088,"avatar_url":"https://avatars2.githubusercontent.com/u/1063088?v=4","gravatar_id":"","url":"https://api.github.com/users/Athlon1600","html_url":"https://github.com/Athlon1600","followers_url":"https://api.github.com/users/Athlon1600/followers","following_url":"https://api.github.com/users/Athlon1600/following{/other_user}","gists_url":"https://api.github.com/users/Athlon1600/gists{/gist_id}","starred_url":"https://api.github.com/users/Athlon1600/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Athlon1600/subscriptions","organizations_url":"https://api.github.com/users/Athlon1600/orgs","repos_url":"https://api.github.com/users/Athlon1600/repos","events_url":"https://api.github.com/users/Athlon1600/events{/privacy}","received_events_url":"https://api.github.com/users/Athlon1600/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Athlon1600/php-proxy","description":"A web proxy script written in PHP and built as an alternative to Glype. ","fork":false,"url":"https://api.github.com/repos/Athlon1600/php-proxy","forks_url":"https://api.github.com/repos/Athlon1600/php-proxy/forks","keys_url":"https://api.github.com/repos/Athlon1600/php-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Athlon1600/php-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Athlon1600/php-proxy/teams","hooks_url":"https://api.github.com/repos/Athlon1600/php-proxy/hooks","issue_events_url":"https://api.github.com/repos/Athlon1600/php-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/Athlon1600/php-proxy/events","assignees_url":"https://api.github.com/repos/Athlon1600/php-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/Athlon1600/php-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/Athlon1600/php-proxy/tags","blobs_url":"https://api.github.com/repos/Athlon1600/php-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Athlon1600/php-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Athlon1600/php-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Athlon1600/php-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Athlon1600/php-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/Athlon1600/php-proxy/languages","stargazers_url":"https://api.github.com/repos/Athlon1600/php-proxy/stargazers","contributors_url":"https://api.github.com/repos/Athlon1600/php-proxy/contributors","subscribers_url":"https://api.github.com/repos/Athlon1600/php-proxy/subscribers","subscription_url":"https://api.github.com/repos/Athlon1600/php-proxy/subscription","commits_url":"https://api.github.com/repos/Athlon1600/php-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Athlon1600/php-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Athlon1600/php-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Athlon1600/php-proxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Athlon1600/php-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/Athlon1600/php-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Athlon1600/php-proxy/merges","archive_url":"https://api.github.com/repos/Athlon1600/php-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Athlon1600/php-proxy/downloads","issues_url":"https://api.github.com/repos/Athlon1600/php-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/Athlon1600/php-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/Athlon1600/php-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/Athlon1600/php-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Athlon1600/php-proxy/labels{/name}","releases_url":"https://api.github.com/repos/Athlon1600/php-proxy/releases{/id}","deployments_url":"https://api.github.com/repos/Athlon1600/php-proxy/deployments","created_at":"2015-01-05T19:03:02Z","updated_at":"2018-03-10T11:39:57Z","pushed_at":"2018-03-21T04:46:18Z","git_url":"git://github.com/Athlon1600/php-proxy.git","ssh_url":"git@github.com:Athlon1600/php-proxy.git","clone_url":"https://github.com/Athlon1600/php-proxy.git","svn_url":"https://github.com/Athlon1600/php-proxy","homepage":"https://www.php-proxy.com","size":514,"stargazers_count":128,"watchers_count":128,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":53,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":65,"open_issues":53,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113"},"html":{"href":"https://github.com/Athlon1600/php-proxy/pull/113"},"issue":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/issues/113"},"comments":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/issues/113/comments"},"review_comments":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113/comments"},"review_comment":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/pulls/113/commits"},"statuses":{"href":"https://api.github.com/repos/Athlon1600/php-proxy/statuses/500638f4322afee2be5658ee0a97c52a6a58068d"}},"author_association":"NONE"}}
{"actor":{"display_login":"Nitpick-CI"}}