diff options
author | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-09-20 11:50:22 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com> | 2012-09-20 11:50:22 +0300 |
commit | ed899a2f4b50b4370feeea94676502b42383c746 (patch) | |
tree | c8c567e9c0adbc463a3300cf0e609151ce3a9560 | |
parent | 6104942438c14ec7bd21c6cd5bd995272b3faff6 (diff) | |
download | gitlab-ce-ed899a2f4b50b4370feeea94676502b42383c746.tar.gz |
Replace sanitize with escape once
-rw-r--r-- | lib/gitlab/graph_commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/graph_commit.rb b/lib/gitlab/graph_commit.rb index e14d670e5c7..d3668a99107 100644 --- a/lib/gitlab/graph_commit.rb +++ b/lib/gitlab/graph_commit.rb @@ -5,7 +5,7 @@ module Gitlab attr_accessor :time, :space attr_accessor :refs - include ActionView::Helpers::SanitizeHelper + include ActionView::Helpers::TagHelper def self.to_graph(project) @repo = project.repo @@ -166,7 +166,7 @@ module Gitlab h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? h[:id] = sha h[:date] = date - h[:message] = sanitize(Gitlab::Encode.utf8(message)) + h[:message] = escape_once(Gitlab::Encode.utf8(message)) h[:login] = author.email h end |