Commit ed899a2f4b50b4370feeea94676502b42383c746
1 parent
61049424
Exists in
master
and in
4 other branches
Replace sanitize with escape once
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/gitlab/graph_commit.rb
@@ -5,7 +5,7 @@ module Gitlab | @@ -5,7 +5,7 @@ module Gitlab | ||
5 | attr_accessor :time, :space | 5 | attr_accessor :time, :space |
6 | attr_accessor :refs | 6 | attr_accessor :refs |
7 | 7 | ||
8 | - include ActionView::Helpers::SanitizeHelper | 8 | + include ActionView::Helpers::TagHelper |
9 | 9 | ||
10 | def self.to_graph(project) | 10 | def self.to_graph(project) |
11 | @repo = project.repo | 11 | @repo = project.repo |
@@ -166,7 +166,7 @@ module Gitlab | @@ -166,7 +166,7 @@ module Gitlab | ||
166 | h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? | 166 | h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? |
167 | h[:id] = sha | 167 | h[:id] = sha |
168 | h[:date] = date | 168 | h[:date] = date |
169 | - h[:message] = sanitize(Gitlab::Encode.utf8(message)) | 169 | + h[:message] = escape_once(Gitlab::Encode.utf8(message)) |
170 | h[:login] = author.email | 170 | h[:login] = author.email |
171 | h | 171 | h |
172 | end | 172 | end |