mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ceb288b8ce
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 |
||
---|---|---|
.. | ||
elsewhere | ||
foo | ||
images | ||
javascripts | ||
stylesheets | ||
.gitignore | ||
404.html | ||
500.da.html | ||
500.html | ||
index.html |