Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
ed899a2f
Commit
ed899a2f
authored
Sep 20, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace sanitize with escape once
parent
61049424
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/graph_commit.rb
lib/gitlab/graph_commit.rb
+2
-2
No files found.
lib/gitlab/graph_commit.rb
View file @
ed899a2f
...
@@ -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
::
Sanitize
Helper
include
ActionView
::
Helpers
::
Tag
Helper
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
]
=
sanitiz
e
(
Gitlab
::
Encode
.
utf8
(
message
))
h
[
:message
]
=
escape_onc
e
(
Gitlab
::
Encode
.
utf8
(
message
))
h
[
:login
]
=
author
.
email
h
[
:login
]
=
author
.
email
h
h
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment