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 17:00:50 +0000
commit90682e7770145eaf001e53db4941be0203225e00 (patch)
tree6c3385f36e9a58c42606b719b0365c7a4e71ba6b /app
parent62f386d698f2e90490fddc7ecca19d7cfc08480a (diff)
Sanitize the blog contents0.15.0.4hotfix/0.15.0.4
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 ef587421e..1bedac73f 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>