Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 12:50:22 +0400
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2012-09-20 12:50:22 +0400
commited899a2f4b50b4370feeea94676502b42383c746 (patch)
treec8c567e9c0adbc463a3300cf0e609151ce3a9560 /lib
parent6104942438c14ec7bd21c6cd5bd995272b3faff6 (diff)
Replace sanitize with escape once
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/graph_commit.rb4
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