mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
RFC 3986[1] allows sub-delim characters in path segments unencoded, however Rack::File requires them to be encoded so we use URI's unescape method to leave them alone and then escape them again. Also since the path gets passed to Dir[] we need to escape any glob characters in the path. [1]: http://www.ietf.org/rfc/rfc3986.txt
1 line
17 B
HTML
1 line
17 B
HTML
/foo/foo@bar.html |