{"action":"created","comment":{"url":"https://api.github.com/repos/mybb/mybb/pulls/comments/55541622","id":55541622,"diff_hunk":"@@ -313,6 +313,11 @@ function upload_avatar($avatar=array(), $uid=0)\n \t\tcase \"image/x-png\":\n \t\t\t$img_type = 3;\n \t\t\tbreak;\n+\t\tcase \"image/bmp\":\n+\t\tcase \"image/x-bmp\":\n+\t\tcase \"image/x-bitmap\":\n+\t\t\t$img_type = 4;","path":"inc/functions_upload.php","position":7,"original_position":7,"commit_id":"e4dafcb6d2996fd800ab75c253e6e08e33796a6d","original_commit_id":"e4dafcb6d2996fd800ab75c253e6e08e33796a6d","user":{"login":"PaulBender","id":1266734,"avatar_url":"https://avatars.githubusercontent.com/u/1266734?v=3","gravatar_id":"","url":"https://api.github.com/users/PaulBender","html_url":"https://github.com/PaulBender","followers_url":"https://api.github.com/users/PaulBender/followers","following_url":"https://api.github.com/users/PaulBender/following{/other_user}","gists_url":"https://api.github.com/users/PaulBender/gists{/gist_id}","starred_url":"https://api.github.com/users/PaulBender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaulBender/subscriptions","organizations_url":"https://api.github.com/users/PaulBender/orgs","repos_url":"https://api.github.com/users/PaulBender/repos","events_url":"https://api.github.com/users/PaulBender/events{/privacy}","received_events_url":"https://api.github.com/users/PaulBender/received_events","type":"User","site_admin":false},"body":"I checked, the img_type for a BMP is 6.","created_at":"2016-03-09T16:08:06Z","updated_at":"2016-03-09T16:08:06Z","html_url":"https://github.com/mybb/mybb/pull/2358#discussion_r55541622","pull_request_url":"https://api.github.com/repos/mybb/mybb/pulls/2358","_links":{"self":{"href":"https://api.github.com/repos/mybb/mybb/pulls/comments/55541622"},"html":{"href":"https://github.com/mybb/mybb/pull/2358#discussion_r55541622"},"pull_request":{"href":"https://api.github.com/repos/mybb/mybb/pulls/2358"}}},"pull_request":{"url":"https://api.github.com/repos/mybb/mybb/pulls/2358","id":62199629,"html_url":"https://github.com/mybb/mybb/pull/2358","diff_url":"https://github.com/mybb/mybb/pull/2358.diff","patch_url":"https://github.com/mybb/mybb/pull/2358.patch","issue_url":"https://api.github.com/repos/mybb/mybb/issues/2358","number":2358,"state":"open","locked":false,"title":"Fixes #2357 - BMP images for avatars","user":{"login":"Cu8eR","id":778890,"avatar_url":"https://avatars.githubusercontent.com/u/778890?v=3","gravatar_id":"","url":"https://api.github.com/users/Cu8eR","html_url":"https://github.com/Cu8eR","followers_url":"https://api.github.com/users/Cu8eR/followers","following_url":"https://api.github.com/users/Cu8eR/following{/other_user}","gists_url":"https://api.github.com/users/Cu8eR/gists{/gist_id}","starred_url":"https://api.github.com/users/Cu8eR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cu8eR/subscriptions","organizations_url":"https://api.github.com/users/Cu8eR/orgs","repos_url":"https://api.github.com/users/Cu8eR/repos","events_url":"https://api.github.com/users/Cu8eR/events{/privacy}","received_events_url":"https://api.github.com/users/Cu8eR/received_events","type":"User","site_admin":false},"body":"#2357","created_at":"2016-03-09T09:21:11Z","updated_at":"2016-03-09T16:08:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"055cd6d4e70d850cd43bc6e640df71d5b4abacec","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mybb/mybb/pulls/2358/commits","review_comments_url":"https://api.github.com/repos/mybb/mybb/pulls/2358/comments","review_comment_url":"https://api.github.com/repos/mybb/mybb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mybb/mybb/issues/2358/comments","statuses_url":"https://api.github.com/repos/mybb/mybb/statuses/e4dafcb6d2996fd800ab75c253e6e08e33796a6d","head":{"label":"Cu8eR:patch-1","ref":"patch-1","sha":"e4dafcb6d2996fd800ab75c253e6e08e33796a6d","user":{"login":"Cu8eR","id":778890,"avatar_url":"https://avatars.githubusercontent.com/u/778890?v=3","gravatar_id":"","url":"https://api.github.com/users/Cu8eR","html_url":"https://github.com/Cu8eR","followers_url":"https://api.github.com/users/Cu8eR/followers","following_url":"https://api.github.com/users/Cu8eR/following{/other_user}","gists_url":"https://api.github.com/users/Cu8eR/gists{/gist_id}","starred_url":"https://api.github.com/users/Cu8eR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cu8eR/subscriptions","organizations_url":"https://api.github.com/users/Cu8eR/orgs","repos_url":"https://api.github.com/users/Cu8eR/repos","events_url":"https://api.github.com/users/Cu8eR/events{/privacy}","received_events_url":"https://api.github.com/users/Cu8eR/received_events","type":"User","site_admin":false},"repo":{"id":48748538,"name":"mybb","full_name":"Cu8eR/mybb","owner":{"login":"Cu8eR","id":778890,"avatar_url":"https://avatars.githubusercontent.com/u/778890?v=3","gravatar_id":"","url":"https://api.github.com/users/Cu8eR","html_url":"https://github.com/Cu8eR","followers_url":"https://api.github.com/users/Cu8eR/followers","following_url":"https://api.github.com/users/Cu8eR/following{/other_user}","gists_url":"https://api.github.com/users/Cu8eR/gists{/gist_id}","starred_url":"https://api.github.com/users/Cu8eR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cu8eR/subscriptions","organizations_url":"https://api.github.com/users/Cu8eR/orgs","repos_url":"https://api.github.com/users/Cu8eR/repos","events_url":"https://api.github.com/users/Cu8eR/events{/privacy}","received_events_url":"https://api.github.com/users/Cu8eR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Cu8eR/mybb","description":"MyBB is a free and open source forum software.","fork":true,"url":"https://api.github.com/repos/Cu8eR/mybb","forks_url":"https://api.github.com/repos/Cu8eR/mybb/forks","keys_url":"https://api.github.com/repos/Cu8eR/mybb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cu8eR/mybb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cu8eR/mybb/teams","hooks_url":"https://api.github.com/repos/Cu8eR/mybb/hooks","issue_events_url":"https://api.github.com/repos/Cu8eR/mybb/issues/events{/number}","events_url":"https://api.github.com/repos/Cu8eR/mybb/events","assignees_url":"https://api.github.com/repos/Cu8eR/mybb/assignees{/user}","branches_url":"https://api.github.com/repos/Cu8eR/mybb/branches{/branch}","tags_url":"https://api.github.com/repos/Cu8eR/mybb/tags","blobs_url":"https://api.github.com/repos/Cu8eR/mybb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cu8eR/mybb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cu8eR/mybb/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cu8eR/mybb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cu8eR/mybb/statuses/{sha}","languages_url":"https://api.github.com/repos/Cu8eR/mybb/languages","stargazers_url":"https://api.github.com/repos/Cu8eR/mybb/stargazers","contributors_url":"https://api.github.com/repos/Cu8eR/mybb/contributors","subscribers_url":"https://api.github.com/repos/Cu8eR/mybb/subscribers","subscription_url":"https://api.github.com/repos/Cu8eR/mybb/subscription","commits_url":"https://api.github.com/repos/Cu8eR/mybb/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cu8eR/mybb/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cu8eR/mybb/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cu8eR/mybb/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cu8eR/mybb/contents/{+path}","compare_url":"https://api.github.com/repos/Cu8eR/mybb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cu8eR/mybb/merges","archive_url":"https://api.github.com/repos/Cu8eR/mybb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cu8eR/mybb/downloads","issues_url":"https://api.github.com/repos/Cu8eR/mybb/issues{/number}","pulls_url":"https://api.github.com/repos/Cu8eR/mybb/pulls{/number}","milestones_url":"https://api.github.com/repos/Cu8eR/mybb/milestones{/number}","notifications_url":"https://api.github.com/repos/Cu8eR/mybb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cu8eR/mybb/labels{/name}","releases_url":"https://api.github.com/repos/Cu8eR/mybb/releases{/id}","deployments_url":"https://api.github.com/repos/Cu8eR/mybb/deployments","created_at":"2015-12-29T13:23:05Z","updated_at":"2015-12-29T13:23:07Z","pushed_at":"2016-03-09T10:48:55Z","git_url":"git://github.com/Cu8eR/mybb.git","ssh_url":"git@github.com:Cu8eR/mybb.git","clone_url":"https://github.com/Cu8eR/mybb.git","svn_url":"https://github.com/Cu8eR/mybb","homepage":"http://www.mybb.com","size":28024,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"feature"}},"base":{"label":"mybb:feature","ref":"feature","sha":"9d82f2a12e0461e488a6c08be693d0ee0b558016","user":{"login":"mybb","id":328641,"avatar_url":"https://avatars.githubusercontent.com/u/328641?v=3","gravatar_id":"","url":"https://api.github.com/users/mybb","html_url":"https://github.com/mybb","followers_url":"https://api.github.com/users/mybb/followers","following_url":"https://api.github.com/users/mybb/following{/other_user}","gists_url":"https://api.github.com/users/mybb/gists{/gist_id}","starred_url":"https://api.github.com/users/mybb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mybb/subscriptions","organizations_url":"https://api.github.com/users/mybb/orgs","repos_url":"https://api.github.com/users/mybb/repos","events_url":"https://api.github.com/users/mybb/events{/privacy}","received_events_url":"https://api.github.com/users/mybb/received_events","type":"Organization","site_admin":false},"repo":{"id":4649599,"name":"mybb","full_name":"mybb/mybb","owner":{"login":"mybb","id":328641,"avatar_url":"https://avatars.githubusercontent.com/u/328641?v=3","gravatar_id":"","url":"https://api.github.com/users/mybb","html_url":"https://github.com/mybb","followers_url":"https://api.github.com/users/mybb/followers","following_url":"https://api.github.com/users/mybb/following{/other_user}","gists_url":"https://api.github.com/users/mybb/gists{/gist_id}","starred_url":"https://api.github.com/users/mybb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mybb/subscriptions","organizations_url":"https://api.github.com/users/mybb/orgs","repos_url":"https://api.github.com/users/mybb/repos","events_url":"https://api.github.com/users/mybb/events{/privacy}","received_events_url":"https://api.github.com/users/mybb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mybb/mybb","description":"MyBB is a free and open source forum software.","fork":false,"url":"https://api.github.com/repos/mybb/mybb","forks_url":"https://api.github.com/repos/mybb/mybb/forks","keys_url":"https://api.github.com/repos/mybb/mybb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mybb/mybb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mybb/mybb/teams","hooks_url":"https://api.github.com/repos/mybb/mybb/hooks","issue_events_url":"https://api.github.com/repos/mybb/mybb/issues/events{/number}","events_url":"https://api.github.com/repos/mybb/mybb/events","assignees_url":"https://api.github.com/repos/mybb/mybb/assignees{/user}","branches_url":"https://api.github.com/repos/mybb/mybb/branches{/branch}","tags_url":"https://api.github.com/repos/mybb/mybb/tags","blobs_url":"https://api.github.com/repos/mybb/mybb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mybb/mybb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mybb/mybb/git/refs{/sha}","trees_url":"https://api.github.com/repos/mybb/mybb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mybb/mybb/statuses/{sha}","languages_url":"https://api.github.com/repos/mybb/mybb/languages","stargazers_url":"https://api.github.com/repos/mybb/mybb/stargazers","contributors_url":"https://api.github.com/repos/mybb/mybb/contributors","subscribers_url":"https://api.github.com/repos/mybb/mybb/subscribers","subscription_url":"https://api.github.com/repos/mybb/mybb/subscription","commits_url":"https://api.github.com/repos/mybb/mybb/commits{/sha}","git_commits_url":"https://api.github.com/repos/mybb/mybb/git/commits{/sha}","comments_url":"https://api.github.com/repos/mybb/mybb/comments{/number}","issue_comment_url":"https://api.github.com/repos/mybb/mybb/issues/comments{/number}","contents_url":"https://api.github.com/repos/mybb/mybb/contents/{+path}","compare_url":"https://api.github.com/repos/mybb/mybb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mybb/mybb/merges","archive_url":"https://api.github.com/repos/mybb/mybb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mybb/mybb/downloads","issues_url":"https://api.github.com/repos/mybb/mybb/issues{/number}","pulls_url":"https://api.github.com/repos/mybb/mybb/pulls{/number}","milestones_url":"https://api.github.com/repos/mybb/mybb/milestones{/number}","notifications_url":"https://api.github.com/repos/mybb/mybb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mybb/mybb/labels{/name}","releases_url":"https://api.github.com/repos/mybb/mybb/releases{/id}","deployments_url":"https://api.github.com/repos/mybb/mybb/deployments","created_at":"2012-06-13T10:34:46Z","updated_at":"2016-03-08T19:26:23Z","pushed_at":"2016-03-09T10:48:55Z","git_url":"git://github.com/mybb/mybb.git","ssh_url":"git@github.com:mybb/mybb.git","clone_url":"https://github.com/mybb/mybb.git","svn_url":"https://github.com/mybb/mybb","homepage":"http://www.mybb.com","size":30093,"stargazers_count":312,"watchers_count":312,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":215,"mirror_url":null,"open_issues_count":183,"forks":215,"open_issues":183,"watchers":312,"default_branch":"feature"}},"_links":{"self":{"href":"https://api.github.com/repos/mybb/mybb/pulls/2358"},"html":{"href":"https://github.com/mybb/mybb/pull/2358"},"issue":{"href":"https://api.github.com/repos/mybb/mybb/issues/2358"},"comments":{"href":"https://api.github.com/repos/mybb/mybb/issues/2358/comments"},"review_comments":{"href":"https://api.github.com/repos/mybb/mybb/pulls/2358/comments"},"review_comment":{"href":"https://api.github.com/repos/mybb/mybb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mybb/mybb/pulls/2358/commits"},"statuses":{"href":"https://api.github.com/repos/mybb/mybb/statuses/e4dafcb6d2996fd800ab75c253e6e08e33796a6d"}}}}