mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 14:46:05 +10:00
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.
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user