From 3290adaf8bf27647971c14ef505196ca797b7d56 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Wed, 8 Jun 2016 17:08:53 -0300 Subject: [PATCH] html_safe: fix escaping in require_auth_to_comment and responsive plugins --- plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb | 2 +- plugins/responsive/views/layouts/application-responsive.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb b/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb index 157b96b..9f49580 100644 --- a/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb +++ b/plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb @@ -38,7 +38,7 @@ class RequireAuthToCommentPlugin < Noosfero::Plugin end def body_beginning - "" if allowed_by_profile + tag :meta, name: 'profile.allow_unauthenticated_comments' if allowed_by_profile end protected diff --git a/plugins/responsive/views/layouts/application-responsive.html.erb b/plugins/responsive/views/layouts/application-responsive.html.erb index ad96fd6..758bd01 100644 --- a/plugins/responsive/views/layouts/application-responsive.html.erb +++ b/plugins/responsive/views/layouts/application-responsive.html.erb @@ -36,7 +36,7 @@ <%= @plugins.dispatch(:body_beginning).map do |content| if content.respond_to?(:call) then instance_exec(&content).to_s.html_safe else content.to_s.html_safe end - end.join("\n") + end.safe_join %>