rails/activesupport/lib/active_support/message_pack
Jonathan Hefner 76ea586c6a Handle non-ASCII-only in AS::MessagePack#signature?
Because `ActiveSupport::MessagePack::Serializer::SIGNATURE` includes a
non-ASCII-only byte (`"\xCC"`), it raises `Encoding::CompatibilityError`
when compared with another string that is not encoded with
`Encoding::BINARY` and also includes a non-ASCII-only byte.

To prevent that, this commit changes `AS::MessagePack#signature?` to
directly compare the first two bytes of both strings.

Fixes #48196.
2023-05-11 21:13:45 -05:00
..
cache_serializer.rb Support :message_pack as a cache serializer format 2023-05-03 14:22:20 -05:00
extensions.rb Add ActiveSupport::MessagePack 2023-04-17 11:56:06 -05:00
serializer.rb Handle non-ASCII-only in AS::MessagePack#signature? 2023-05-11 21:13:45 -05:00