adds text_with_links helper and use that in any comment.body in views, adds test to check for malicious injections in comment body
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<li id="<%= dom_id(comment) %>">
|
||||
<div class="row">
|
||||
<div class="small-12 medium-8 column">
|
||||
<%= comment.body %>
|
||||
<%= text_with_links comment.body %>
|
||||
<%= link_to comment.commentable.title, comment.commentable %>
|
||||
</div>
|
||||
<div class="small-6 medium-4 column text-right">
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
<li id="<%= dom_id(comment) %>">
|
||||
<div class="row">
|
||||
<div class="small-12 medium-10 column">
|
||||
<%= comment.body %>
|
||||
<%= text_with_links comment.body %>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
Reference in New Issue
Block a user