Commit eb8d2df06a7cc2ccff3132643e84588b80546076

Authored by Braulio Bhavamitra
1 parent f1b53f69

rails4: use new sanitizer

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 class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro 4 class CommentGroupPlugin::AllowComment < Noosfero::Plugin::Macro
  5 +
5 def self.configuration 6 def self.configuration
6 { :params => [], 7 { :params => [],
7 :skip_dialog => true, 8 :skip_dialog => true,
plugins/variables/lib/variables_plugin/macros/profile.rb
1 -ActionView::Base.sanitized_allowed_attributes += ['data-macro'] 1 +# FIXME See a better way to generalize this parameter.
  2 +Loofah::HTML5::WhiteList::ALLOWED_ATTRIBUTES.merge %w[data-macro]
2 3
3 class VariablesPlugin::Profile < Noosfero::Plugin::Macro 4 class VariablesPlugin::Profile < Noosfero::Plugin::Macro
4 5