[Git][noosfero/noosfero][master] profile_info: fix html_safe issue
Bráulio Bhavamitra
gitlab at mg.gitlab.com
Tue Jun 7 18:50:41 BRT 2016
Bráulio Bhavamitra pushed to branch master at Noosfero / noosfero
Commits:
c4f95f04 by Braulio Bhavamitra at 2016-06-07T18:50:12-03:00
profile_info: fix html_safe issue
- - - - -
1 changed file:
- app/views/blocks/profile_info.html.erb
Changes:
=====================================
app/views/blocks/profile_info.html.erb
=====================================
--- a/app/views/blocks/profile_info.html.erb
+++ b/app/views/blocks/profile_info.html.erb
@@ -30,7 +30,7 @@
[ [ profile.city, 'locality' ],
[ profile.state, 'region' ],
[ profile.country_name, 'country-name' ]
- ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.join ' - '
+ ].map{ |s,c| s =~ /^\s*$/ ? nil : content_tag( 'span', s, :class => c ) }.compact.safe_join ' - '
%>
</div>
<% end %>
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/c4f95f0486e255472e0a94af64ad96410e55e1cd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160607/0ad721e7/attachment.html>
More information about the Noosfero-dev
mailing list