Commit b449ecbd03b121a4bdef4f143fad80fa0f7f7539
1 parent
8cab970c
Exists in
master
and in
29 other branches
Escape article titles in recent documents block
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/recent_documents_block.rb
... | ... | @@ -19,7 +19,7 @@ class RecentDocumentsBlock < Block |
19 | 19 | docs = self.limit.nil? ? owner.recent_documents : owner.recent_documents(self.limit) |
20 | 20 | |
21 | 21 | block_title(title) + |
22 | - content_tag('ul', docs.map {|item| content_tag('li', link_to(item.title, item.url))}.join("\n")) | |
22 | + content_tag('ul', docs.map {|item| content_tag('li', link_to(h(item.title), item.url))}.join("\n")) | |
23 | 23 | |
24 | 24 | end |
25 | 25 | ... | ... |