BigW Consortium Gitlab

Commit ed899a2f by Dmitriy Zaporozhets

Replace sanitize with escape once

parent 61049424
...@@ -5,7 +5,7 @@ module Gitlab ...@@ -5,7 +5,7 @@ module Gitlab
attr_accessor :time, :space attr_accessor :time, :space
attr_accessor :refs attr_accessor :refs
include ActionView::Helpers::SanitizeHelper include ActionView::Helpers::TagHelper
def self.to_graph(project) def self.to_graph(project)
@repo = project.repo @repo = project.repo
...@@ -166,7 +166,7 @@ module Gitlab ...@@ -166,7 +166,7 @@ module Gitlab
h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil? h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil?
h[:id] = sha h[:id] = sha
h[:date] = date h[:date] = date
h[:message] = sanitize(Gitlab::Encode.utf8(message)) h[:message] = escape_once(Gitlab::Encode.utf8(message))
h[:login] = author.email h[:login] = author.email
h h
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment