Escape text passed directly to gfm
This commit is contained in:
parent
496f88afe1
commit
ba72c6f683
7 changed files with 7 additions and 7 deletions
|
@ -5,4 +5,4 @@
|
|||
%strong.cdark= commit.author_name
|
||||
–
|
||||
= image_tag gravatar_icon(commit.author_email), class: "avatar", width: 16
|
||||
= gfm truncate(commit.title, length: 50) rescue "--broken encoding"
|
||||
= gfm escape_once(truncate(commit.title, length: 50)) rescue "--broken encoding"
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
.alert-message.error.status_info Closed
|
||||
- else
|
||||
.alert-message.success.status_info Open
|
||||
= gfm @issue.title
|
||||
= gfm escape_once(@issue.title)
|
||||
|
||||
.middle_box_content
|
||||
%cite.cgray Created by
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
.alert-message.error.status_info Closed
|
||||
- else
|
||||
.alert-message.success.status_info Open
|
||||
= gfm @merge_request.title
|
||||
= gfm escape_once(@merge_request.title)
|
||||
|
||||
.middle_box_content
|
||||
%div
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
.alert-message.error.status_info Closed
|
||||
- else
|
||||
.alert-message.success.status_info Open
|
||||
= gfm @milestone.title
|
||||
= gfm escape_once(@milestone.title)
|
||||
%small.right= @milestone.expires_at
|
||||
|
||||
.middle_box_content
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
%code= commit.short_id
|
||||
|
||||
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
|
||||
= gfm truncate(commit.title, length: 40)
|
||||
= gfm escape_once(truncate(commit.title, length: 40))
|
||||
%span.update-author.right
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
ago
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
= link_to project_commits_path(@project, commit.id) do
|
||||
%code= commit.short_id
|
||||
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
|
||||
= gfm truncate(commit.title, length: 40)
|
||||
= gfm escape_once(truncate(commit.title, length: 40))
|
||||
%td
|
||||
%span.right.cgray
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
= link_to project_commit_path(@project, commit.id) do
|
||||
%code= commit.short_id
|
||||
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
|
||||
= gfm truncate(commit.title, length: 40)
|
||||
= gfm escape_once(truncate(commit.title, length: 40))
|
||||
%td
|
||||
%span.update-author.right
|
||||
= time_ago_in_words(commit.committed_date)
|
||||
|
|
Loading…
Reference in a new issue