honeybadger-io / honeybadger-ruby

Ruby gem for reporting errors to honeybadger.io
https://docs.honeybadger.io/lib/ruby/
MIT License
250 stars 146 forks source link

fix: sanitize SQL when reporting SQL queries #571

Closed stympy closed 4 months ago

stympy commented 4 months ago

Replace strings like "where name = 'Bob'" with "where name = '?'"

rabidpraxis commented 4 months ago

We also have this class used for breadcrumbs: https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/util/sql.rb

stympy commented 4 months ago

We also have this class used for breadcrumbs: https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/util/sql.rb

Thanks! https://github.com/honeybadger-io/honeybadger-ruby/pull/571/commits/6ee8e242ea0ba401961f30b4e24c96df2e441e3b :)