{"action":"closed","number":1405,"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405","id":76125512,"html_url":"https://github.com/fossasia/open-event-orga-server/pull/1405","diff_url":"https://github.com/fossasia/open-event-orga-server/pull/1405.diff","patch_url":"https://github.com/fossasia/open-event-orga-server/pull/1405.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/1405","number":1405,"state":"closed","locked":false,"title":"Sanitize output of rich text editors before saving to DB","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"body":"Also resolves #1388. #1388 was due to the presence of a few additional whitespace characters in the output from the rich text editor. The sanitization fixes it. \r\n\r\nThe sanitizer:\r\n\r\n1. Allows only a small set of whitelisted tags (basic formatting options provided in the text editor)\r\n1. Allows only a small set of whitelisted attributed (style attribute)\r\n1. Allows only a small set of inline css styles (font weight, text decoration, text alignment)\r\n1. Linkify's the text and also adds the `rel=nofollow` and `target=_blank` attributes to the link.\r\n\r\n@mariobehling @rafalkowalski please review and merge/","created_at":"2016-07-04T08:01:37Z","updated_at":"2016-07-04T08:08:25Z","closed_at":"2016-07-04T08:08:25Z","merged_at":"2016-07-04T08:08:25Z","merge_commit_sha":"c862c5b048cf4cba27fe62eb96e343d1ed5d0e62","assignee":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"assignees":[{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/13","html_url":"https://github.com/fossasia/open-event-orga-server/milestones/GSOC%202016:%20Milestone%208","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones/13/labels","id":1762379,"number":13,"title":"GSOC 2016: Milestone 8","description":"GSOC 2016 Milestone 8 - All issues to be completed by 10th July 2016.\r\n\r\nInstructions: \r\n1. Create issues to work on.\r\n2. Assign the issue to the milestone.\r\n3. Assign the issue to a user.\r\n\r\nCompleted Milestone:\r\n1. Create a blog post describing what has been done.\r\n2. Tag a release.\r\n3. Deploy on a server.","creator":{"login":"juslee","id":1696598,"avatar_url":"https://avatars.githubusercontent.com/u/1696598?v=3","gravatar_id":"","url":"https://api.github.com/users/juslee","html_url":"https://github.com/juslee","followers_url":"https://api.github.com/users/juslee/followers","following_url":"https://api.github.com/users/juslee/following{/other_user}","gists_url":"https://api.github.com/users/juslee/gists{/gist_id}","starred_url":"https://api.github.com/users/juslee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juslee/subscriptions","organizations_url":"https://api.github.com/users/juslee/orgs","repos_url":"https://api.github.com/users/juslee/repos","events_url":"https://api.github.com/users/juslee/events{/privacy}","received_events_url":"https://api.github.com/users/juslee/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":3,"state":"open","created_at":"2016-05-12T13:13:54Z","updated_at":"2016-07-04T08:08:25Z","due_on":"2016-07-09T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/1405/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/4655c4e872e60c6891858a519cb618febb8f5a66","head":{"label":"niranjan94:gsoc/bug/rich-text/html-clean","ref":"gsoc/bug/rich-text/html-clean","sha":"4655c4e872e60c6891858a519cb618febb8f5a66","user":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"repo":{"id":59465623,"name":"open-event-orga-server","full_name":"niranjan94/open-event-orga-server","owner":{"login":"niranjan94","id":2404372,"avatar_url":"https://avatars.githubusercontent.com/u/2404372?v=3","gravatar_id":"","url":"https://api.github.com/users/niranjan94","html_url":"https://github.com/niranjan94","followers_url":"https://api.github.com/users/niranjan94/followers","following_url":"https://api.github.com/users/niranjan94/following{/other_user}","gists_url":"https://api.github.com/users/niranjan94/gists{/gist_id}","starred_url":"https://api.github.com/users/niranjan94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niranjan94/subscriptions","organizations_url":"https://api.github.com/users/niranjan94/orgs","repos_url":"https://api.github.com/users/niranjan94/repos","events_url":"https://api.github.com/users/niranjan94/events{/privacy}","received_events_url":"https://api.github.com/users/niranjan94/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niranjan94/open-event-orga-server","description":"Open Event Orga Server","fork":true,"url":"https://api.github.com/repos/niranjan94/open-event-orga-server","forks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/niranjan94/open-event-orga-server/deployments","created_at":"2016-05-23T08:31:07Z","updated_at":"2016-06-21T11:04:54Z","pushed_at":"2016-07-04T08:06:56Z","git_url":"git://github.com/niranjan94/open-event-orga-server.git","ssh_url":"git@github.com:niranjan94/open-event-orga-server.git","clone_url":"https://github.com/niranjan94/open-event-orga-server.git","svn_url":"https://github.com/niranjan94/open-event-orga-server","homepage":null,"size":6144,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"fossasia:development","ref":"development","sha":"2220bea2cab25c9b7eee0b0f7c37a55268c5e168","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35270176,"name":"open-event-orga-server","full_name":"fossasia/open-event-orga-server","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-orga-server","description":"The Open Event Server to manage the event(s)","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-orga-server","forks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-orga-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-orga-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-orga-server/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-orga-server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-orga-server/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-orga-server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-orga-server/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-orga-server/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-orga-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-orga-server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-orga-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-orga-server/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-orga-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-orga-server/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-orga-server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-orga-server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-orga-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-orga-server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-orga-server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-orga-server/deployments","created_at":"2015-05-08T09:16:19Z","updated_at":"2016-07-02T10:33:06Z","pushed_at":"2016-07-04T08:08:25Z","git_url":"git://github.com/fossasia/open-event-orga-server.git","ssh_url":"git@github.com:fossasia/open-event-orga-server.git","clone_url":"https://github.com/fossasia/open-event-orga-server.git","svn_url":"https://github.com/fossasia/open-event-orga-server","homepage":"https://open-event.herokuapp.com","size":6815,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":53,"forks":48,"open_issues":53,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405"},"html":{"href":"https://github.com/fossasia/open-event-orga-server/pull/1405"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/1405"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/issues/1405/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/pulls/1405/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-orga-server/statuses/4655c4e872e60c6891858a519cb618febb8f5a66"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rafalkowalski","id":2479753,"avatar_url":"https://avatars.githubusercontent.com/u/2479753?v=3","gravatar_id":"","url":"https://api.github.com/users/rafalkowalski","html_url":"https://github.com/rafalkowalski","followers_url":"https://api.github.com/users/rafalkowalski/followers","following_url":"https://api.github.com/users/rafalkowalski/following{/other_user}","gists_url":"https://api.github.com/users/rafalkowalski/gists{/gist_id}","starred_url":"https://api.github.com/users/rafalkowalski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafalkowalski/subscriptions","organizations_url":"https://api.github.com/users/rafalkowalski/orgs","repos_url":"https://api.github.com/users/rafalkowalski/repos","events_url":"https://api.github.com/users/rafalkowalski/events{/privacy}","received_events_url":"https://api.github.com/users/rafalkowalski/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":4,"additions":94,"deletions":32,"changed_files":15}}
{"actor":{"display_login":"rafalkowalski"}}