Skip to content
  • Andrew White's avatar
    2ef14588
    Use ASCII-8BIT paths in ActionDispatch::Static · 2ef14588
    Andrew White authored
    The rack gem returns PATH_INFO as an ASCII-8BIT encoded string but it
    was being converted to US-ASCII by the match? method because it was
    calling Rack::Utils.escape_path. To prevent incompatibile encoding
    warnings use ASCII-8BIT strings for the root path and let Ruby handle
    any filename encoding conversion.
    
    Fixes #32294, Closes #32314.
    2ef14588
    Use ASCII-8BIT paths in ActionDispatch::Static
    Andrew White authored
    The rack gem returns PATH_INFO as an ASCII-8BIT encoded string but it
    was being converted to US-ASCII by the match? method because it was
    calling Rack::Utils.escape_path. To prevent incompatibile encoding
    warnings use ASCII-8BIT strings for the root path and let Ruby handle
    any filename encoding conversion.
    
    Fixes #32294, Closes #32314.
Loading