[Git][noosfero/noosfero][master] should not escape html of body_ending hotspot

Leandro Nunes gitlab at mg.gitlab.com
Mon Aug 1 10:37:02 BRT 2016


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
a0194228 by Leandro Nunes dos Santos at 2016-08-01T10:36:35-03:00
should not escape html of body_ending hotspot

- - - - -


1 changed file:

- app/views/layouts/application-ng.html.erb


Changes:

=====================================
app/views/layouts/application-ng.html.erb
=====================================
--- a/app/views/layouts/application-ng.html.erb
+++ b/app/views/layouts/application-ng.html.erb
@@ -86,9 +86,9 @@
     <%=
       str = (@plugins.dispatch(:body_ending).map do |content|
               if content.respond_to?(:call) then 
-                instance_exec(&content)
+                instance_exec(&content).html_safe
               else 
-                content
+                content.html_safe
               end
             end)
       safe_join(str, "\n")



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/a01942280e93772a0dd196912e50fac02db150b4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160801/dd319a59/attachment.html>


More information about the Noosfero-dev mailing list