{"action":"created","comment":{"url":"https://api.github.com/repos/openemr/openemr/pulls/comments/214251830","pull_request_review_id":151267751,"id":214251830,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDI1MTgzMA==","diff_hunk":"@@ -0,0 +1,67 @@\n+<?php\n+/**\n+ *\n+ * Copyright (C) 2012-2013 Naina Mohamed <naina@capminds.com> CapMinds Technologies\n+ *\n+ * LICENSE: This program is free software; you can redistribute it and/or\n+ * modify it under the terms of the GNU General Public License\n+ * as published by the Free Software Foundation; either version 3\n+ * of the License, or (at your option) any later version.\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU General Public License for more details.\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.\n+ *\n+ * @package OpenEMR\n+ * @author  Naina Mohamed <naina@capminds.com>\n+ * @link    http://www.open-emr.org\n+ */\n+\n+  //SANITIZE ALL ESCAPES\n+ $sanitize_all_escapes=$_POST['true'];\n+\n+ //STOP FAKE REGISTER GLOBALS\n+ $fake_register_globals=$_POST['false'];\n+\n+include_once(\"../../globals.php\");\n+include_once(\"$srcdir/api.inc\");\n+include_once(\"$srcdir/forms.inc\");\n+require_once(\"$srcdir/formdata.inc.php\");\n+\n+if (! $encounter) { // comes from globals.php\n+ die(xl(\"Internal error: we do not seem to be in an encounter!\"));\n+}\n+\n+$id = 0 + (isset($_GET['id']) ? $_GET['id'] : '');\n+\n+$sets = \"pid = {$_SESSION[\"pid\"]},\n+  groupname = '\" . $_SESSION[\"authProvider\"] . \"',\n+  user = '\" . $_SESSION[\"authUser\"] . \"',\n+  authorized = $userauthorized, activity=1, date = NOW(),","path":"contrib/forms/medical_evaluation/save.php","position":42,"original_position":42,"commit_id":"88f153f3dcc407438f9581c08716af3ac2d282d1","original_commit_id":"88f153f3dcc407438f9581c08716af3ac2d282d1","user":{"login":"bradymiller","id":278968,"node_id":"MDQ6VXNlcjI3ODk2OA==","avatar_url":"https://avatars1.githubusercontent.com/u/278968?v=4","gravatar_id":"","url":"https://api.github.com/users/bradymiller","html_url":"https://github.com/bradymiller","followers_url":"https://api.github.com/users/bradymiller/followers","following_url":"https://api.github.com/users/bradymiller/following{/other_user}","gists_url":"https://api.github.com/users/bradymiller/gists{/gist_id}","starred_url":"https://api.github.com/users/bradymiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradymiller/subscriptions","organizations_url":"https://api.github.com/users/bradymiller/orgs","repos_url":"https://api.github.com/users/bradymiller/repos","events_url":"https://api.github.com/users/bradymiller/events{/privacy}","received_events_url":"https://api.github.com/users/bradymiller/received_events","type":"User","site_admin":false},"body":"Change above block of code to following to prevent sql-injection:\r\n```\r\n$sets = \"pid = '\" .  add_escape_custom($_SESSION[\"pid\"]) . \"',\r\n  groupname = '\" . add_escape_custom($_SESSION[\"authProvider\"]) . \"',\r\n  user = '\" . add_escape_custom($_SESSION[\"authUser\"]) . \"',\r\n  authorized = '\" . add_escape_custom($userauthorized) . \"', activity=1, date = NOW(),\r\n```","created_at":"2018-08-31T06:07:05Z","updated_at":"2018-08-31T06:07:05Z","html_url":"https://github.com/openemr/openemr/pull/1823#discussion_r214251830","pull_request_url":"https://api.github.com/repos/openemr/openemr/pulls/1823","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments/214251830"},"html":{"href":"https://github.com/openemr/openemr/pull/1823#discussion_r214251830"},"pull_request":{"href":"https://api.github.com/repos/openemr/openemr/pulls/1823"}}},"pull_request":{"url":"https://api.github.com/repos/openemr/openemr/pulls/1823","id":211880029,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExODgwMDI5","html_url":"https://github.com/openemr/openemr/pull/1823","diff_url":"https://github.com/openemr/openemr/pull/1823.diff","patch_url":"https://github.com/openemr/openemr/pull/1823.patch","issue_url":"https://api.github.com/repos/openemr/openemr/issues/1823","number":1823,"state":"open","locked":false,"title":"added Med Eval Form to contrib folder","user":{"login":"DanielPythonProjects","id":34587449,"node_id":"MDQ6VXNlcjM0NTg3NDQ5","avatar_url":"https://avatars3.githubusercontent.com/u/34587449?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielPythonProjects","html_url":"https://github.com/DanielPythonProjects","followers_url":"https://api.github.com/users/DanielPythonProjects/followers","following_url":"https://api.github.com/users/DanielPythonProjects/following{/other_user}","gists_url":"https://api.github.com/users/DanielPythonProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielPythonProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielPythonProjects/subscriptions","organizations_url":"https://api.github.com/users/DanielPythonProjects/orgs","repos_url":"https://api.github.com/users/DanielPythonProjects/repos","events_url":"https://api.github.com/users/DanielPythonProjects/events{/privacy}","received_events_url":"https://api.github.com/users/DanielPythonProjects/received_events","type":"User","site_admin":false},"body":"Added a simple Med Eval Form to the Contrib Folder. Please review.\r\nThanks!","created_at":"2018-08-29T20:38:32Z","updated_at":"2018-08-31T06:07:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b90aaa1ee559415f19a5be305f9b0742fd905b1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":433468182,"node_id":"MDU6TGFiZWw0MzM0NjgxODI=","url":"https://api.github.com/repos/openemr/openemr/labels/Status:%20Needs%20Review","name":"Status: Needs Review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openemr/openemr/pulls/1823/commits","review_comments_url":"https://api.github.com/repos/openemr/openemr/pulls/1823/comments","review_comment_url":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openemr/openemr/issues/1823/comments","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/88f153f3dcc407438f9581c08716af3ac2d282d1","head":{"label":"DanielPythonProjects:openemr-D-501","ref":"openemr-D-501","sha":"88f153f3dcc407438f9581c08716af3ac2d282d1","user":{"login":"DanielPythonProjects","id":34587449,"node_id":"MDQ6VXNlcjM0NTg3NDQ5","avatar_url":"https://avatars3.githubusercontent.com/u/34587449?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielPythonProjects","html_url":"https://github.com/DanielPythonProjects","followers_url":"https://api.github.com/users/DanielPythonProjects/followers","following_url":"https://api.github.com/users/DanielPythonProjects/following{/other_user}","gists_url":"https://api.github.com/users/DanielPythonProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielPythonProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielPythonProjects/subscriptions","organizations_url":"https://api.github.com/users/DanielPythonProjects/orgs","repos_url":"https://api.github.com/users/DanielPythonProjects/repos","events_url":"https://api.github.com/users/DanielPythonProjects/events{/privacy}","received_events_url":"https://api.github.com/users/DanielPythonProjects/received_events","type":"User","site_admin":false},"repo":{"id":114795777,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ3OTU3Nzc=","name":"openemr","full_name":"DanielPythonProjects/openemr","owner":{"login":"DanielPythonProjects","id":34587449,"node_id":"MDQ6VXNlcjM0NTg3NDQ5","avatar_url":"https://avatars3.githubusercontent.com/u/34587449?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielPythonProjects","html_url":"https://github.com/DanielPythonProjects","followers_url":"https://api.github.com/users/DanielPythonProjects/followers","following_url":"https://api.github.com/users/DanielPythonProjects/following{/other_user}","gists_url":"https://api.github.com/users/DanielPythonProjects/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielPythonProjects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielPythonProjects/subscriptions","organizations_url":"https://api.github.com/users/DanielPythonProjects/orgs","repos_url":"https://api.github.com/users/DanielPythonProjects/repos","events_url":"https://api.github.com/users/DanielPythonProjects/events{/privacy}","received_events_url":"https://api.github.com/users/DanielPythonProjects/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DanielPythonProjects/openemr","description":"OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR's goal is a superior alternative to its proprietary counterparts.","fork":true,"url":"https://api.github.com/repos/DanielPythonProjects/openemr","forks_url":"https://api.github.com/repos/DanielPythonProjects/openemr/forks","keys_url":"https://api.github.com/repos/DanielPythonProjects/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DanielPythonProjects/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DanielPythonProjects/openemr/teams","hooks_url":"https://api.github.com/repos/DanielPythonProjects/openemr/hooks","issue_events_url":"https://api.github.com/repos/DanielPythonProjects/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/DanielPythonProjects/openemr/events","assignees_url":"https://api.github.com/repos/DanielPythonProjects/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/DanielPythonProjects/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/DanielPythonProjects/openemr/tags","blobs_url":"https://api.github.com/repos/DanielPythonProjects/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DanielPythonProjects/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DanielPythonProjects/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/DanielPythonProjects/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DanielPythonProjects/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/DanielPythonProjects/openemr/languages","stargazers_url":"https://api.github.com/repos/DanielPythonProjects/openemr/stargazers","contributors_url":"https://api.github.com/repos/DanielPythonProjects/openemr/contributors","subscribers_url":"https://api.github.com/repos/DanielPythonProjects/openemr/subscribers","subscription_url":"https://api.github.com/repos/DanielPythonProjects/openemr/subscription","commits_url":"https://api.github.com/repos/DanielPythonProjects/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/DanielPythonProjects/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/DanielPythonProjects/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/DanielPythonProjects/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/DanielPythonProjects/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/DanielPythonProjects/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DanielPythonProjects/openemr/merges","archive_url":"https://api.github.com/repos/DanielPythonProjects/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DanielPythonProjects/openemr/downloads","issues_url":"https://api.github.com/repos/DanielPythonProjects/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/DanielPythonProjects/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/DanielPythonProjects/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/DanielPythonProjects/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DanielPythonProjects/openemr/labels{/name}","releases_url":"https://api.github.com/repos/DanielPythonProjects/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/DanielPythonProjects/openemr/deployments","created_at":"2017-12-19T18:00:01Z","updated_at":"2018-08-29T17:08:39Z","pushed_at":"2018-08-29T17:21:32Z","git_url":"git://github.com/DanielPythonProjects/openemr.git","ssh_url":"git@github.com:DanielPythonProjects/openemr.git","clone_url":"https://github.com/DanielPythonProjects/openemr.git","svn_url":"https://github.com/DanielPythonProjects/openemr","homepage":"http://open-emr.org/","size":404498,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"openemr:master","ref":"master","sha":"75d61333815624c3796296164f7b8572a55b6be7","user":{"login":"openemr","id":283089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MzA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/283089?v=4","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"repo":{"id":679584,"node_id":"MDEwOlJlcG9zaXRvcnk2Nzk1ODQ=","name":"openemr","full_name":"openemr/openemr","owner":{"login":"openemr","id":283089,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI4MzA4OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/283089?v=4","gravatar_id":"","url":"https://api.github.com/users/openemr","html_url":"https://github.com/openemr","followers_url":"https://api.github.com/users/openemr/followers","following_url":"https://api.github.com/users/openemr/following{/other_user}","gists_url":"https://api.github.com/users/openemr/gists{/gist_id}","starred_url":"https://api.github.com/users/openemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openemr/subscriptions","organizations_url":"https://api.github.com/users/openemr/orgs","repos_url":"https://api.github.com/users/openemr/repos","events_url":"https://api.github.com/users/openemr/events{/privacy}","received_events_url":"https://api.github.com/users/openemr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openemr/openemr","description":"OpenEMR is the most popular open source electronic health records and medical practice management solution. ONC certified with international usage, OpenEMR's goal is a superior alternative to its proprietary counterparts.","fork":false,"url":"https://api.github.com/repos/openemr/openemr","forks_url":"https://api.github.com/repos/openemr/openemr/forks","keys_url":"https://api.github.com/repos/openemr/openemr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openemr/openemr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openemr/openemr/teams","hooks_url":"https://api.github.com/repos/openemr/openemr/hooks","issue_events_url":"https://api.github.com/repos/openemr/openemr/issues/events{/number}","events_url":"https://api.github.com/repos/openemr/openemr/events","assignees_url":"https://api.github.com/repos/openemr/openemr/assignees{/user}","branches_url":"https://api.github.com/repos/openemr/openemr/branches{/branch}","tags_url":"https://api.github.com/repos/openemr/openemr/tags","blobs_url":"https://api.github.com/repos/openemr/openemr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openemr/openemr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openemr/openemr/git/refs{/sha}","trees_url":"https://api.github.com/repos/openemr/openemr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openemr/openemr/statuses/{sha}","languages_url":"https://api.github.com/repos/openemr/openemr/languages","stargazers_url":"https://api.github.com/repos/openemr/openemr/stargazers","contributors_url":"https://api.github.com/repos/openemr/openemr/contributors","subscribers_url":"https://api.github.com/repos/openemr/openemr/subscribers","subscription_url":"https://api.github.com/repos/openemr/openemr/subscription","commits_url":"https://api.github.com/repos/openemr/openemr/commits{/sha}","git_commits_url":"https://api.github.com/repos/openemr/openemr/git/commits{/sha}","comments_url":"https://api.github.com/repos/openemr/openemr/comments{/number}","issue_comment_url":"https://api.github.com/repos/openemr/openemr/issues/comments{/number}","contents_url":"https://api.github.com/repos/openemr/openemr/contents/{+path}","compare_url":"https://api.github.com/repos/openemr/openemr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openemr/openemr/merges","archive_url":"https://api.github.com/repos/openemr/openemr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openemr/openemr/downloads","issues_url":"https://api.github.com/repos/openemr/openemr/issues{/number}","pulls_url":"https://api.github.com/repos/openemr/openemr/pulls{/number}","milestones_url":"https://api.github.com/repos/openemr/openemr/milestones{/number}","notifications_url":"https://api.github.com/repos/openemr/openemr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openemr/openemr/labels{/name}","releases_url":"https://api.github.com/repos/openemr/openemr/releases{/id}","deployments_url":"https://api.github.com/repos/openemr/openemr/deployments","created_at":"2010-05-21T19:54:08Z","updated_at":"2018-08-31T01:42:15Z","pushed_at":"2018-08-31T01:09:03Z","git_url":"git://github.com/openemr/openemr.git","ssh_url":"git@github.com:openemr/openemr.git","clone_url":"https://github.com/openemr/openemr.git","svn_url":"https://github.com/openemr/openemr","homepage":"http://open-emr.org/","size":407281,"stargazers_count":821,"watchers_count":821,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":669,"mirror_url":null,"archived":false,"open_issues_count":229,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":669,"open_issues":229,"watchers":821,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openemr/openemr/pulls/1823"},"html":{"href":"https://github.com/openemr/openemr/pull/1823"},"issue":{"href":"https://api.github.com/repos/openemr/openemr/issues/1823"},"comments":{"href":"https://api.github.com/repos/openemr/openemr/issues/1823/comments"},"review_comments":{"href":"https://api.github.com/repos/openemr/openemr/pulls/1823/comments"},"review_comment":{"href":"https://api.github.com/repos/openemr/openemr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openemr/openemr/pulls/1823/commits"},"statuses":{"href":"https://api.github.com/repos/openemr/openemr/statuses/88f153f3dcc407438f9581c08716af3ac2d282d1"}},"author_association":"NONE"}}
{"actor":{"display_login":"bradymiller"}}