diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-12-22 10:56:00 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-12-22 17:13:18 +0000 |
commit | ebf13d76efcfb60ca56e9557b0fe1e6528ee03ff (patch) | |
tree | d078c0f48b1987cdb93546bf8166a6eba4062af0 /app | |
parent | 3b2cc4bf80d1a23450ae90f5800d024ee37172eb (diff) |
Sanitize the blog contents
Diffstat (limited to 'app')
-rw-r--r-- | app/views/general/blog.html.erb | 4 |
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> |