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:
parent
a19508d6b7
commit
ebf80db3ab
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue