You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cover the same whitespace in both ArgumentKeys character maps
REMOVE_CHARACTERS uses [[:space:]], so it strips a tab and a newline.
REPLACE_MAP listed only a plain space, so it left them in the key:
remove "a\tb" # => "ab"
replace "a\tb" # => "a\tb" tab survives into the key
A raw tab or newline in a cache key breaks the Memcached protocol.
REPLACE_MAP now covers tab, newline, carriage return, form feed, and vertical
tab. It is also a Hash rather than an array of pairs, so #cache_key makes one
gsub pass over the string instead of 13.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments