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 | 5 | attr_accessor :time, :space |
6 | 6 | attr_accessor :refs |
7 | 7 | |
8 | - include ActionView::Helpers::SanitizeHelper | |
8 | + include ActionView::Helpers::TagHelper | |
9 | 9 | |
10 | 10 | def self.to_graph(project) |
11 | 11 | @repo = project.repo |
... | ... | @@ -166,7 +166,7 @@ module Gitlab |
166 | 166 | h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? |
167 | 167 | h[:id] = sha |
168 | 168 | h[:date] = date |
169 | - h[:message] = sanitize(Gitlab::Encode.utf8(message)) | |
169 | + h[:message] = escape_once(Gitlab::Encode.utf8(message)) | |
170 | 170 | h[:login] = author.email |
171 | 171 | h |
172 | 172 | end | ... | ... |