Commit eb8d2df06a7cc2ccff3132643e84588b80546076
1 parent
f1b53f69
Exists in
master
and in
20 other branches
rails4: use new sanitizer
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
plugins/comment_group/lib/comment_group_plugin/macros/allow_comment.rb
1 | -#FIXME See a better way to generalize this parameter. | |
2 | -ActionView::Base.sanitized_allowed_attributes += ['data-macro', 'data-macro-group_id'] | |
1 | +# FIXME See a better way to generalize this parameter. | |
2 | +Loofah::HTML5::WhiteList::ALLOWED_ATTRIBUTES.merge %w[data-macro data-macro-group_id] | |
3 | 3 | |
4 | 4 | class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro |
5 | + | |
5 | 6 | def self.configuration |
6 | 7 | { :params => [], |
7 | 8 | :skip_dialog => true, | ... | ... |
plugins/variables/lib/variables_plugin/macros/profile.rb