Commit 3290adaf8bf27647971c14ef505196ca797b7d56
1 parent
a1afc163
Exists in
staging
and in
22 other branches
html_safe: fix escaping in require_auth_to_comment and responsive plugins
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
plugins/require_auth_to_comment/lib/require_auth_to_comment_plugin.rb
| @@ -38,7 +38,7 @@ class RequireAuthToCommentPlugin < Noosfero::Plugin | @@ -38,7 +38,7 @@ class RequireAuthToCommentPlugin < Noosfero::Plugin | ||
| 38 | end | 38 | end |
| 39 | 39 | ||
| 40 | def body_beginning | 40 | def body_beginning |
| 41 | - "<meta name='profile.allow_unauthenticated_comments'/>" if allowed_by_profile | 41 | + tag :meta, name: 'profile.allow_unauthenticated_comments' if allowed_by_profile |
| 42 | end | 42 | end |
| 43 | 43 | ||
| 44 | protected | 44 | protected |
plugins/responsive/views/layouts/application-responsive.html.erb
| @@ -36,7 +36,7 @@ | @@ -36,7 +36,7 @@ | ||
| 36 | <%= | 36 | <%= |
| 37 | @plugins.dispatch(:body_beginning).map do |content| | 37 | @plugins.dispatch(:body_beginning).map do |content| |
| 38 | if content.respond_to?(:call) then instance_exec(&content).to_s.html_safe else content.to_s.html_safe end | 38 | if content.respond_to?(:call) then instance_exec(&content).to_s.html_safe else content.to_s.html_safe end |
| 39 | - end.join("\n") | 39 | + end.safe_join |
| 40 | %> | 40 | %> |
| 41 | <div id="global-header"> | 41 | <div id="global-header"> |
| 42 | <%= global_header %> | 42 | <%= global_header %> |