{"action":"created","issue":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/3183","repository_url":"https://api.github.com/repos/refinery/refinerycms","labels_url":"https://api.github.com/repos/refinery/refinerycms/issues/3183/labels{/name}","comments_url":"https://api.github.com/repos/refinery/refinerycms/issues/3183/comments","events_url":"https://api.github.com/repos/refinery/refinerycms/issues/3183/events","html_url":"https://github.com/refinery/refinerycms/pull/3183","id":156205060,"number":3183,"title":"Allow regex in attribute whitelist.","user":{"login":"nzgrover","id":2955978,"avatar_url":"https://avatars.githubusercontent.com/u/2955978?v=3","gravatar_id":"","url":"https://api.github.com/users/nzgrover","html_url":"https://github.com/nzgrover","followers_url":"https://api.github.com/users/nzgrover/followers","following_url":"https://api.github.com/users/nzgrover/following{/other_user}","gists_url":"https://api.github.com/users/nzgrover/gists{/gist_id}","starred_url":"https://api.github.com/users/nzgrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzgrover/subscriptions","organizations_url":"https://api.github.com/users/nzgrover/orgs","repos_url":"https://api.github.com/users/nzgrover/repos","events_url":"https://api.github.com/users/nzgrover/events{/privacy}","received_events_url":"https://api.github.com/users/nzgrover/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/refinery/refinerycms/labels/3-0-stable","name":"3-0-stable","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"parndt","id":10128,"avatar_url":"https://avatars.githubusercontent.com/u/10128?v=3","gravatar_id":"","url":"https://api.github.com/users/parndt","html_url":"https://github.com/parndt","followers_url":"https://api.github.com/users/parndt/followers","following_url":"https://api.github.com/users/parndt/following{/other_user}","gists_url":"https://api.github.com/users/parndt/gists{/gist_id}","starred_url":"https://api.github.com/users/parndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parndt/subscriptions","organizations_url":"https://api.github.com/users/parndt/orgs","repos_url":"https://api.github.com/users/parndt/repos","events_url":"https://api.github.com/users/parndt/events{/privacy}","received_events_url":"https://api.github.com/users/parndt/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/refinery/refinerycms/milestones/14","html_url":"https://github.com/refinery/refinerycms/milestones/3.0.4","labels_url":"https://api.github.com/repos/refinery/refinerycms/milestones/14/labels","id":1733207,"number":14,"title":"3.0.4","description":"","creator":{"login":"bricesanchez","id":1678530,"avatar_url":"https://avatars.githubusercontent.com/u/1678530?v=3","gravatar_id":"","url":"https://api.github.com/users/bricesanchez","html_url":"https://github.com/bricesanchez","followers_url":"https://api.github.com/users/bricesanchez/followers","following_url":"https://api.github.com/users/bricesanchez/following{/other_user}","gists_url":"https://api.github.com/users/bricesanchez/gists{/gist_id}","starred_url":"https://api.github.com/users/bricesanchez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bricesanchez/subscriptions","organizations_url":"https://api.github.com/users/bricesanchez/orgs","repos_url":"https://api.github.com/users/bricesanchez/repos","events_url":"https://api.github.com/users/bricesanchez/events{/privacy}","received_events_url":"https://api.github.com/users/bricesanchez/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":7,"state":"open","created_at":"2016-04-27T03:02:21Z","updated_at":"2016-05-25T02:05:59Z","due_on":"2016-06-03T04:00:00Z","closed_at":null},"comments":6,"created_at":"2016-05-23T05:55:38Z","updated_at":"2016-05-25T07:20:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/refinery/refinerycms/pulls/3183","html_url":"https://github.com/refinery/refinerycms/pull/3183","diff_url":"https://github.com/refinery/refinerycms/pull/3183.diff","patch_url":"https://github.com/refinery/refinerycms/pull/3183.patch"},"body":"Adds the ability to use a regex in the attribute whitelist. The specific need I have is to allow all 'data-whatever' attributes through. \r\nJust wanted to get the ball rolling with this commit, look forward feedback on improvements or the 'refinerycms' way to do this."},"comment":{"url":"https://api.github.com/repos/refinery/refinerycms/issues/comments/221493087","html_url":"https://github.com/refinery/refinerycms/pull/3183#issuecomment-221493087","issue_url":"https://api.github.com/repos/refinery/refinerycms/issues/3183","id":221493087,"user":{"login":"nzgrover","id":2955978,"avatar_url":"https://avatars.githubusercontent.com/u/2955978?v=3","gravatar_id":"","url":"https://api.github.com/users/nzgrover","html_url":"https://github.com/nzgrover","followers_url":"https://api.github.com/users/nzgrover/followers","following_url":"https://api.github.com/users/nzgrover/following{/other_user}","gists_url":"https://api.github.com/users/nzgrover/gists{/gist_id}","starred_url":"https://api.github.com/users/nzgrover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzgrover/subscriptions","organizations_url":"https://api.github.com/users/nzgrover/orgs","repos_url":"https://api.github.com/users/nzgrover/repos","events_url":"https://api.github.com/users/nzgrover/events{/privacy}","received_events_url":"https://api.github.com/users/nzgrover/received_events","type":"User","site_admin":false},"created_at":"2016-05-25T07:20:15Z","updated_at":"2016-05-25T07:20:15Z","body":"@parndt I've had a further look at seeing if we can just use loofah, but as far as I can tell, if you supply attributes then ONLY those attributes explicitly supplied are allowed through. If you don't supply attributes, then the loofah default scrubber is used, which includes a regex to allow all 'data-' attributes.\r\nThe only way I can think of round it would be to update loofahs default allowed attributes directly, but loofah doesn't provide a way to do so. See this very old issue open regarding this: https://github.com/flavorjones/loofah/issues/14\r\nHow do you wish to proceed?"}}
{"actor":{"display_login":"nzgrover"}}