{"action":"created","comment":{"url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/comments/43308838","id":43308838,"diff_hunk":"@@ -175,7 +175,11 @@ function islandora_cwrc_document_get_rng_css_accessibility($object) {\n function islandora_cwrc_document_check_xml($file) {\n   // Check that the uploaded file is well-formed XML.\n   libxml_use_internal_errors(TRUE);\n-  simplexml_load_file(drupal_realpath($file->uri));\n+  $file_contents = file_get_contents(drupal_realpath($file->uri));","path":"includes/utilities.inc","position":5,"original_position":5,"commit_id":"5306af702f9b4ad3c80d5bc84906456319235a1b","original_commit_id":"5306af702f9b4ad3c80d5bc84906456319235a1b","user":{"login":"adam-vessey","id":607975,"avatar_url":"https://avatars.githubusercontent.com/u/607975?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-vessey","html_url":"https://github.com/adam-vessey","followers_url":"https://api.github.com/users/adam-vessey/followers","following_url":"https://api.github.com/users/adam-vessey/following{/other_user}","gists_url":"https://api.github.com/users/adam-vessey/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-vessey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-vessey/subscriptions","organizations_url":"https://api.github.com/users/adam-vessey/orgs","repos_url":"https://api.github.com/users/adam-vessey/repos","events_url":"https://api.github.com/users/adam-vessey/events{/privacy}","received_events_url":"https://api.github.com/users/adam-vessey/received_events","type":"User","site_admin":false},"body":"Yeah, not too concerned about this. Will merge as-is.","created_at":"2015-10-28T19:55:34Z","updated_at":"2015-10-28T19:55:34Z","html_url":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11#discussion_r43308838","pull_request_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/comments/43308838"},"html":{"href":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11#discussion_r43308838"},"pull_request":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11","id":48904743,"html_url":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11","diff_url":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11.diff","patch_url":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11.patch","issue_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/11","number":11,"state":"open","locked":false,"title":"Remove xml-model before validating the uploaded file.","user":{"login":"matthewperry","id":8352593,"avatar_url":"https://avatars.githubusercontent.com/u/8352593?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewperry","html_url":"https://github.com/matthewperry","followers_url":"https://api.github.com/users/matthewperry/followers","following_url":"https://api.github.com/users/matthewperry/following{/other_user}","gists_url":"https://api.github.com/users/matthewperry/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewperry/subscriptions","organizations_url":"https://api.github.com/users/matthewperry/orgs","repos_url":"https://api.github.com/users/matthewperry/repos","events_url":"https://api.github.com/users/matthewperry/events{/privacy}","received_events_url":"https://api.github.com/users/matthewperry/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-27T17:31:49Z","updated_at":"2015-10-28T19:55:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e315074a17c1d5ab22530fa8117dc7a0df31a9e0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11/commits","review_comments_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11/comments","review_comment_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/comments{/number}","comments_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/11/comments","statuses_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/statuses/5306af702f9b4ad3c80d5bc84906456319235a1b","head":{"label":"matthewperry:7.x-upload-validation","ref":"7.x-upload-validation","sha":"5306af702f9b4ad3c80d5bc84906456319235a1b","user":{"login":"matthewperry","id":8352593,"avatar_url":"https://avatars.githubusercontent.com/u/8352593?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewperry","html_url":"https://github.com/matthewperry","followers_url":"https://api.github.com/users/matthewperry/followers","following_url":"https://api.github.com/users/matthewperry/following{/other_user}","gists_url":"https://api.github.com/users/matthewperry/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewperry/subscriptions","organizations_url":"https://api.github.com/users/matthewperry/orgs","repos_url":"https://api.github.com/users/matthewperry/repos","events_url":"https://api.github.com/users/matthewperry/events{/privacy}","received_events_url":"https://api.github.com/users/matthewperry/received_events","type":"User","site_admin":false},"repo":{"id":42607494,"name":"islandora_cwrc_document","full_name":"matthewperry/islandora_cwrc_document","owner":{"login":"matthewperry","id":8352593,"avatar_url":"https://avatars.githubusercontent.com/u/8352593?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewperry","html_url":"https://github.com/matthewperry","followers_url":"https://api.github.com/users/matthewperry/followers","following_url":"https://api.github.com/users/matthewperry/following{/other_user}","gists_url":"https://api.github.com/users/matthewperry/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewperry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewperry/subscriptions","organizations_url":"https://api.github.com/users/matthewperry/orgs","repos_url":"https://api.github.com/users/matthewperry/repos","events_url":"https://api.github.com/users/matthewperry/events{/privacy}","received_events_url":"https://api.github.com/users/matthewperry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matthewperry/islandora_cwrc_document","description":"Data model used by the CWRC-Writer","fork":true,"url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document","forks_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/forks","keys_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/teams","hooks_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/hooks","issue_events_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/issues/events{/number}","events_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/events","assignees_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/assignees{/user}","branches_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/branches{/branch}","tags_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/tags","blobs_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/git/refs{/sha}","trees_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/statuses/{sha}","languages_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/languages","stargazers_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/stargazers","contributors_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/contributors","subscribers_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/subscribers","subscription_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/subscription","commits_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/commits{/sha}","git_commits_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/git/commits{/sha}","comments_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/comments{/number}","issue_comment_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/issues/comments{/number}","contents_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/contents/{+path}","compare_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/merges","archive_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/downloads","issues_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/issues{/number}","pulls_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/pulls{/number}","milestones_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/milestones{/number}","notifications_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/labels{/name}","releases_url":"https://api.github.com/repos/matthewperry/islandora_cwrc_document/releases{/id}","created_at":"2015-09-16T19:03:43Z","updated_at":"2015-09-16T19:03:43Z","pushed_at":"2015-10-27T17:31:43Z","git_url":"git://github.com/matthewperry/islandora_cwrc_document.git","ssh_url":"git@github.com:matthewperry/islandora_cwrc_document.git","clone_url":"https://github.com/matthewperry/islandora_cwrc_document.git","svn_url":"https://github.com/matthewperry/islandora_cwrc_document","homepage":null,"size":105,"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":"7.x"}},"base":{"label":"discoverygarden:7.x","ref":"7.x","sha":"e9ff3e2b86eb89e9171df3c85ea7162dd2e56aef","user":{"login":"discoverygarden","id":598560,"avatar_url":"https://avatars.githubusercontent.com/u/598560?v=3","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"repo":{"id":32335459,"name":"islandora_cwrc_document","full_name":"discoverygarden/islandora_cwrc_document","owner":{"login":"discoverygarden","id":598560,"avatar_url":"https://avatars.githubusercontent.com/u/598560?v=3","gravatar_id":"","url":"https://api.github.com/users/discoverygarden","html_url":"https://github.com/discoverygarden","followers_url":"https://api.github.com/users/discoverygarden/followers","following_url":"https://api.github.com/users/discoverygarden/following{/other_user}","gists_url":"https://api.github.com/users/discoverygarden/gists{/gist_id}","starred_url":"https://api.github.com/users/discoverygarden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/discoverygarden/subscriptions","organizations_url":"https://api.github.com/users/discoverygarden/orgs","repos_url":"https://api.github.com/users/discoverygarden/repos","events_url":"https://api.github.com/users/discoverygarden/events{/privacy}","received_events_url":"https://api.github.com/users/discoverygarden/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/discoverygarden/islandora_cwrc_document","description":"Data model used by the CWRC-Writer","fork":false,"url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document","forks_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/forks","keys_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/keys{/key_id}","collaborators_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/teams","hooks_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/hooks","issue_events_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/events{/number}","events_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/events","assignees_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/assignees{/user}","branches_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/branches{/branch}","tags_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/tags","blobs_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/git/refs{/sha}","trees_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/git/trees{/sha}","statuses_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/statuses/{sha}","languages_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/languages","stargazers_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/stargazers","contributors_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/contributors","subscribers_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/subscribers","subscription_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/subscription","commits_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/commits{/sha}","git_commits_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/git/commits{/sha}","comments_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/comments{/number}","issue_comment_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/comments{/number}","contents_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/contents/{+path}","compare_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/compare/{base}...{head}","merges_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/merges","archive_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/downloads","issues_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues{/number}","pulls_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls{/number}","milestones_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/milestones{/number}","notifications_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/labels{/name}","releases_url":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/releases{/id}","created_at":"2015-03-16T15:44:16Z","updated_at":"2015-09-17T15:57:29Z","pushed_at":"2015-10-27T17:31:49Z","git_url":"git://github.com/discoverygarden/islandora_cwrc_document.git","ssh_url":"git@github.com:discoverygarden/islandora_cwrc_document.git","clone_url":"https://github.com/discoverygarden/islandora_cwrc_document.git","svn_url":"https://github.com/discoverygarden/islandora_cwrc_document","homepage":null,"size":292,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"7.x"}},"_links":{"self":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11"},"html":{"href":"https://github.com/discoverygarden/islandora_cwrc_document/pull/11"},"issue":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/11"},"comments":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/discoverygarden/islandora_cwrc_document/statuses/5306af702f9b4ad3c80d5bc84906456319235a1b"}}}}