Skip to content
Snippets Groups Projects
Commit 61049424 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Sanitize for network graph

parent ae1d9fb4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,8 @@ module Gitlab
attr_accessor :time, :space
attr_accessor :refs
 
include ActionView::Helpers::SanitizeHelper
def self.to_graph(project)
@repo = project.repo
commits = Grit::Commit.find_all(@repo, nil, {max_count: 650})
Loading
Loading
@@ -164,7 +166,7 @@ module Gitlab
h[:refs] = refs.collect{|r|r.name}.join(" ") unless refs.nil?
h[:id] = sha
h[:date] = date
h[:message] = Gitlab::Encode.utf8(message)
h[:message] = sanitize(Gitlab::Encode.utf8(message))
h[:login] = author.email
h
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment