提交 ebf80db3 编写于 作者: J 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.
上级 a19508d6
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册