Commit ebf80db3 authored by Jacob Vosmaer's avatar Jacob Vosmaer

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
...@@ -59,7 +59,7 @@ class WebHook < ActiveRecord::Base ...@@ -59,7 +59,7 @@ class WebHook < ActiveRecord::Base
basic_auth: auth) basic_auth: auth)
end 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 rescue SocketError, OpenSSL::SSL::SSLError, Errno::ECONNRESET, Errno::ECONNREFUSED, Net::OpenTimeout => e
logger.error("WebHook Error => #{e}") logger.error("WebHook Error => #{e}")
[false, e.to_s] [false, e.to_s]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment