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:
Jacob Vosmaer 2016-05-10 11:14:46 +02:00
parent a19508d6b7
commit ebf80db3ab
1 changed files with 1 additions and 1 deletions

View File

@ -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]