BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
ebf80db3
Commit
ebf80db3
authored
May 10, 2016
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra sanitization
Robert Speicher and I believe this string gets sanitized further down the stack anyway. Doing this in a model class feels wrong.
parent
a19508d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web_hook.rb
app/models/hooks/web_hook.rb
+1
-1
No files found.
app/models/hooks/web_hook.rb
View file @
ebf80db3
...
...
@@ -59,7 +59,7 @@ class WebHook < ActiveRecord::Base
basic_auth:
auth
)
end
[
response
.
code
,
ActionView
::
Base
.
full_sanitizer
.
sanitize
(
response
.
to_s
)
]
[
response
.
code
,
response
.
to_s
]
rescue
SocketError
,
OpenSSL
::
SSL
::
SSLError
,
Errno
::
ECONNRESET
,
Errno
::
ECONNREFUSED
,
Net
::
OpenTimeout
=>
e
logger
.
error
(
"WebHook Error =>
#{
e
}
"
)
[
false
,
e
.
to_s
]
...
...
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