invidious/src
Samantaz Fox 97895a491a
Playlists: Fix 'invalid byte sequence' error when subscribing (#4887)
In Crystal, handling multi-byte sequences in UTF-8 requires understanding that
slicing by bytes can lead to invalid sequences if the slicing isn't aligned
with character boundaries. In this case, attempting to slice a string by bytes
can cut through multi-byte UTF-8 sequences, leading to invalid sequences.

To avoid this, strings should be sliced based on characters rather than bytes.

Fixes issue 4886
2024-10-08 18:01:22 +02:00
..
ext StaticFileHandler: use HTTP::Status rather than integers 2022-08-15 13:22:39 +02:00
invidious Playlists: Fix 'invalid byte sequence' error when subscribing (#4887) 2024-10-08 18:01:22 +02:00
invidious.cr Performance: Improve speed of automatic instance redirection (#4193) 2024-10-08 17:31:20 +02:00