Commit 09dc965ba35315ffbc234fe67dd0e6351658ebb2
1 parent
6f6d0855
Exists in
ratings_minor_fixes
and in
4 other branches
html safe fix for author link in blog's posts
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/helpers/content_viewer_helper.rb
... | ... | @@ -29,7 +29,7 @@ module ContentViewerHelper |
29 | 29 | date_format = show_with_right_format_date article |
30 | 30 | title << content_tag('span', |
31 | 31 | date_format + |
32 | - content_tag('span', _(", by %s") % (article.author ? link_to(article.author_name, article.author_url) : article.author_name), :class => 'author') + | |
32 | + content_tag('span', _(", by %s").html_safe % (article.author ? link_to(article.author_name, article.author_url) : article.author_name), :class => 'author') + | |
33 | 33 | content_tag('span', comments, :class => 'comments'), |
34 | 34 | :class => 'publishing-info' |
35 | 35 | ) | ... | ... |