[Git][noosfero/noosfero][master] comment_paragraph: fix sanitizer initialization (fix tests)
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Sat Nov 21 10:33:33 BRST 2015
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
81ecee71 by Braulio Bhavamitra at 2015-11-21T09:33:12Z
comment_paragraph: fix sanitizer initialization (fix tests)
- - - - -
1 changed file:
- plugins/comment_paragraph/lib/comment_paragraph_plugin/macros/allow_comment.rb
Changes:
=====================================
plugins/comment_paragraph/lib/comment_paragraph_plugin/macros/allow_comment.rb
=====================================
--- a/plugins/comment_paragraph/lib/comment_paragraph_plugin/macros/allow_comment.rb
+++ b/plugins/comment_paragraph/lib/comment_paragraph_plugin/macros/allow_comment.rb
@@ -1,4 +1,5 @@
-ActionView::Base.sanitized_allowed_attributes += ['data-macro', 'data-macro-paragraph_uuid']
+# FIXME See a better way to generalize this parameter.
+Loofah::HTML5::WhiteList::ALLOWED_ATTRIBUTES.merge %w[data-macro data-macro-group_id]
class CommentParagraphPlugin::AllowComment < Noosfero::Plugin::Macro
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/81ecee7160dd424baa6136618755293444b14309
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151121/4cc9564c/attachment.html>
More information about the Noosfero-dev
mailing list