iachat/spec/services/twilio
Jordan Brough 4f5c5e9f85
fix: Erase null bytes from incoming Twilio messages (#7901)
We've had some messages come in from a few different phone numbers that had null bytes in them. I don't know how this happens. They don't seem to be malicious.

They currently cause the Postgres gem to raise an error when Chatwoot attempts to save the message body to the database:

ArgumentError (string contains null byte)

Related Rails GitHub issue: rails/rails#26891
2023-09-12 18:07:18 -07:00
..
incoming_message_service_spec.rb fix: Erase null bytes from incoming Twilio messages (#7901) 2023-09-12 18:07:18 -07:00
oneoff_sms_campaign_service_spec.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
send_on_twilio_service_spec.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
webhook_setup_service_spec.rb feat: Allow Twilio::REST::TwilioError errors to raise and prevent Inbox creation (#7379) 2023-08-16 15:00:02 -07:00