[Git][noosfero/noosfero][master] fix html escape of comment title
Leandro Nunes
gitlab at mg.gitlab.com
Thu May 5 17:08:11 BRT 2016
Leandro Nunes pushed to branch master at Noosfero / noosfero
Commits:
ea29ebc4 by Leandro Nunes dos Santos at 2016-05-05T17:07:26-03:00
fix html escape of comment title
- - - - -
1 changed file:
- app/views/comment/_comment.html.erb
Changes:
=====================================
app/views/comment/_comment.html.erb
=====================================
--- a/app/views/comment/_comment.html.erb
+++ b/app/views/comment/_comment.html.erb
@@ -38,7 +38,7 @@
<div class="comment-created-at">
<%= show_time(comment.created_at) %>
</div>
- <h4><%= comment.title.blank? && ' ' || comment.title %></h4>
+ <h4><%= comment.title.blank? && ' '.html_safe || comment.title %></h4>
<div class="comment-text">
<p/>
<%= txt2html comment.body %>
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/ea29ebc4aeaac151bbac95c9398998ce3f2a5d0f
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160505/aa4c3417/attachment-0001.html>
More information about the Noosfero-dev
mailing list