mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 02:19:27 +08:00
safely call html_safe on category description
The `categories.description` column is not modified as "not null", so it is possible for the description to be nil. This changes the code not call html_safe on nil.
This commit is contained in:
parent
0d66a41753
commit
f3f7dd02d1
|
@ -6,7 +6,7 @@
|
|||
<h2><a href='<%= c.url %>' itemprop='item'>
|
||||
<span itemprop='name'><%= c.name %></span>
|
||||
</a></h2>
|
||||
<span itemprop='description'><%= c.description.html_safe %></span>
|
||||
<span itemprop='description'><%= c.description&.html_safe %></span>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user