diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2012-02-17 13:33:44 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2012-02-17 14:07:48 +0000 |
commit | ceb288b8ce552a248f141bddbd16426641a4fd0d (patch) | |
tree | b7f3fe70fa7c531e7520fd61cf3e08820d5369f6 /actionpack/test/fixtures/public/foo/foo=bar.html | |
parent | ce51edb73bce5e213568fd5a362fb3557a06aee1 (diff) | |
download | rails-ceb288b8ce552a248f141bddbd16426641a4fd0d.tar.gz rails-ceb288b8ce552a248f141bddbd16426641a4fd0d.tar.bz2 rails-ceb288b8ce552a248f141bddbd16426641a4fd0d.zip |
Fix ActionDispatch::Static to serve files with unencoded PCHAR
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
Diffstat (limited to 'actionpack/test/fixtures/public/foo/foo=bar.html')
-rw-r--r-- | actionpack/test/fixtures/public/foo/foo=bar.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/fixtures/public/foo/foo=bar.html b/actionpack/test/fixtures/public/foo/foo=bar.html new file mode 100644 index 0000000000..206f69e286 --- /dev/null +++ b/actionpack/test/fixtures/public/foo/foo=bar.html @@ -0,0 +1 @@ +/foo/foo=bar.html
\ No newline at end of file |