aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-12-22 10:56:00 +0000
committerLouise Crow <louise.crow@gmail.com>2014-12-22 16:45:51 +0000
commitbf29c559bde6408c1a8d94145e5f974d1ced10c6 (patch)
treeb54545b45f85c768f30c0157175e278f3f86da5b /app
parent4230c641e34fb4988c0df0aa8dff1b4781f54db2 (diff)
Sanitize the blog contents0.16.0.10hotfix/0.16.0.10
Diffstat (limited to 'app')
-rw-r--r--app/views/general/blog.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/general/blog.html.erb b/app/views/general/blog.html.erb
index b81989ca8..b22b8482a 100644
--- a/app/views/general/blog.html.erb
+++ b/app/views/general/blog.html.erb
@@ -26,9 +26,9 @@
<p class="subtitle"><%= _("Posted on {{date}} by {{author}}", :date=>simple_date(Time.parse(item['pubDate'][0])), :author=> item['creator'] ? item['creator'][0] : item['author'][0]) %></p>
<div>
<% if item['encoded'] %>
- <%= raw item['encoded'][0] %>
+ <%= sanitize(raw item['encoded'][0]) %>
<% elsif item['description'] %>
- <%= raw item['description'][0] %>
+ <%= sanitize(raw item['description'][0]) %>
<% end %>
</div>
<p><em>