Escape text passed to gfm by link_to_gfm
This commit is contained in:
parent
01974185a1
commit
496f88afe1
3 changed files with 12 additions and 5 deletions
|
@ -11,10 +11,10 @@
|
|||
= link_to tree_project_ref_path(@project, @commit.id), class: "browse-button primary grouped" do
|
||||
%strong Browse Code »
|
||||
%h3.commit-title.page_title
|
||||
= gfm @commit.title
|
||||
= gfm escape_once(@commit.title)
|
||||
- if @commit.description.present?
|
||||
%pre.commit-description
|
||||
= gfm @commit.description
|
||||
= gfm escape_once(@commit.description)
|
||||
.commit-info
|
||||
.row
|
||||
.span4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue