{"action":"opened","number":8,"pull_request":{"url":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8","id":44758442,"html_url":"https://github.com/dancameron/server-side-google-analytics/pull/8","diff_url":"https://github.com/dancameron/server-side-google-analytics/pull/8.diff","patch_url":"https://github.com/dancameron/server-side-google-analytics/pull/8.patch","issue_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/8","number":8,"state":"open","locked":false,"title":"http_build_query incorrectly encodes spaces","user":{"login":"MichaelApproved","id":222099,"avatar_url":"https://avatars.githubusercontent.com/u/222099?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelApproved","html_url":"https://github.com/MichaelApproved","followers_url":"https://api.github.com/users/MichaelApproved/followers","following_url":"https://api.github.com/users/MichaelApproved/following{/other_user}","gists_url":"https://api.github.com/users/MichaelApproved/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelApproved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelApproved/subscriptions","organizations_url":"https://api.github.com/users/MichaelApproved/orgs","repos_url":"https://api.github.com/users/MichaelApproved/repos","events_url":"https://api.github.com/users/MichaelApproved/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelApproved/received_events","type":"User","site_admin":false},"body":"The http_build_query will encode a space as a plus sign. This should be encoded as %20, instead of \"+\". Encoding as a + will cause Google Analytics to display it as a plus sign.\r\n\r\nBy manually building the query string, we can use rawurlencode to do proper encoding of spaces.","created_at":"2015-09-11T08:39:12Z","updated_at":"2015-09-11T08:39:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8/commits","review_comments_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8/comments","review_comment_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/8/comments","statuses_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/statuses/5c58eb8e2fe8f6d6f55579043e3a0f9ff8907b62","head":{"label":"MichaelApproved:patch-1","ref":"patch-1","sha":"5c58eb8e2fe8f6d6f55579043e3a0f9ff8907b62","user":{"login":"MichaelApproved","id":222099,"avatar_url":"https://avatars.githubusercontent.com/u/222099?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelApproved","html_url":"https://github.com/MichaelApproved","followers_url":"https://api.github.com/users/MichaelApproved/followers","following_url":"https://api.github.com/users/MichaelApproved/following{/other_user}","gists_url":"https://api.github.com/users/MichaelApproved/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelApproved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelApproved/subscriptions","organizations_url":"https://api.github.com/users/MichaelApproved/orgs","repos_url":"https://api.github.com/users/MichaelApproved/repos","events_url":"https://api.github.com/users/MichaelApproved/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelApproved/received_events","type":"User","site_admin":false},"repo":{"id":42297182,"name":"server-side-google-analytics","full_name":"MichaelApproved/server-side-google-analytics","owner":{"login":"MichaelApproved","id":222099,"avatar_url":"https://avatars.githubusercontent.com/u/222099?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelApproved","html_url":"https://github.com/MichaelApproved","followers_url":"https://api.github.com/users/MichaelApproved/followers","following_url":"https://api.github.com/users/MichaelApproved/following{/other_user}","gists_url":"https://api.github.com/users/MichaelApproved/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelApproved/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelApproved/subscriptions","organizations_url":"https://api.github.com/users/MichaelApproved/orgs","repos_url":"https://api.github.com/users/MichaelApproved/repos","events_url":"https://api.github.com/users/MichaelApproved/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelApproved/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichaelApproved/server-side-google-analytics","description":"PHP class to send pageViews or Events to Google Analytics without the need of javascript.","fork":true,"url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics","forks_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/forks","keys_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/teams","hooks_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/events","assignees_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/tags","blobs_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/languages","stargazers_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/subscription","commits_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/merges","archive_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/downloads","issues_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/MichaelApproved/server-side-google-analytics/releases{/id}","created_at":"2015-09-11T08:35:14Z","updated_at":"2015-09-11T08:35:14Z","pushed_at":"2015-09-11T08:37:37Z","git_url":"git://github.com/MichaelApproved/server-side-google-analytics.git","ssh_url":"git@github.com:MichaelApproved/server-side-google-analytics.git","clone_url":"https://github.com/MichaelApproved/server-side-google-analytics.git","svn_url":"https://github.com/MichaelApproved/server-side-google-analytics","homepage":"http://www.sproutventure.com/gbs-customization-request/","size":155,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"dancameron:master","ref":"master","sha":"db639e931b4fa15121c094cbc05d32c6b197b29f","user":{"login":"dancameron","id":1413460,"avatar_url":"https://avatars.githubusercontent.com/u/1413460?v=3","gravatar_id":"","url":"https://api.github.com/users/dancameron","html_url":"https://github.com/dancameron","followers_url":"https://api.github.com/users/dancameron/followers","following_url":"https://api.github.com/users/dancameron/following{/other_user}","gists_url":"https://api.github.com/users/dancameron/gists{/gist_id}","starred_url":"https://api.github.com/users/dancameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancameron/subscriptions","organizations_url":"https://api.github.com/users/dancameron/orgs","repos_url":"https://api.github.com/users/dancameron/repos","events_url":"https://api.github.com/users/dancameron/events{/privacy}","received_events_url":"https://api.github.com/users/dancameron/received_events","type":"User","site_admin":false},"repo":{"id":4812073,"name":"server-side-google-analytics","full_name":"dancameron/server-side-google-analytics","owner":{"login":"dancameron","id":1413460,"avatar_url":"https://avatars.githubusercontent.com/u/1413460?v=3","gravatar_id":"","url":"https://api.github.com/users/dancameron","html_url":"https://github.com/dancameron","followers_url":"https://api.github.com/users/dancameron/followers","following_url":"https://api.github.com/users/dancameron/following{/other_user}","gists_url":"https://api.github.com/users/dancameron/gists{/gist_id}","starred_url":"https://api.github.com/users/dancameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dancameron/subscriptions","organizations_url":"https://api.github.com/users/dancameron/orgs","repos_url":"https://api.github.com/users/dancameron/repos","events_url":"https://api.github.com/users/dancameron/events{/privacy}","received_events_url":"https://api.github.com/users/dancameron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dancameron/server-side-google-analytics","description":"PHP class to send pageViews or Events to Google Analytics without the need of javascript.","fork":false,"url":"https://api.github.com/repos/dancameron/server-side-google-analytics","forks_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/forks","keys_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/teams","hooks_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/hooks","issue_events_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/events{/number}","events_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/events","assignees_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/assignees{/user}","branches_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/branches{/branch}","tags_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/tags","blobs_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/git/refs{/sha}","trees_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/statuses/{sha}","languages_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/languages","stargazers_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/stargazers","contributors_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/contributors","subscribers_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/subscribers","subscription_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/subscription","commits_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/commits{/sha}","git_commits_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/git/commits{/sha}","comments_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/comments{/number}","issue_comment_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/comments{/number}","contents_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/contents/{+path}","compare_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/merges","archive_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/downloads","issues_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues{/number}","pulls_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls{/number}","milestones_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/milestones{/number}","notifications_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/labels{/name}","releases_url":"https://api.github.com/repos/dancameron/server-side-google-analytics/releases{/id}","created_at":"2012-06-27T18:38:40Z","updated_at":"2015-09-11T07:31:07Z","pushed_at":"2015-07-14T21:34:13Z","git_url":"git://github.com/dancameron/server-side-google-analytics.git","ssh_url":"git@github.com:dancameron/server-side-google-analytics.git","clone_url":"https://github.com/dancameron/server-side-google-analytics.git","svn_url":"https://github.com/dancameron/server-side-google-analytics","homepage":"http://www.sproutventure.com/gbs-customization-request/","size":155,"stargazers_count":52,"watchers_count":52,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":1,"forks":16,"open_issues":1,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8"},"html":{"href":"https://github.com/dancameron/server-side-google-analytics/pull/8"},"issue":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/8"},"comments":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/dancameron/server-side-google-analytics/statuses/5c58eb8e2fe8f6d6f55579043e3a0f9ff8907b62"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":3,"changed_files":1}}