aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/fixtures/公共/foo
Commit message (Collapse)AuthorAgeFilesLines
* Use ASCII-8BIT paths in ActionDispatch::StaticAndrew White2018-03-222-0/+1
| | | | | | | | | | 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.
* config.static_index configures directory index "index.html" filenameEliot Sykes2015-05-281-0/+1
| | | | | | Set `config.static_index` to serve a static directory index file not named `index`. For example, to serve `main.html` instead of `index.html` for directory requests, set `config.static_index` to `"main"`.
* Fix Encoding::CompatibilityError when public path is UTF-8Andrew White2013-12-294-0/+6
In #5337 we forced the path encoding to ASCII-8BIT to prevent static file handling from blowing up before an application has had chance to deal with possibly invalid urls. However this has a negative side effect of making it an incompatible encoding if the application's public path has UTF-8 characters in it. To work around the problem we check to see if the path has a valid encoding once it has been unescaped. If it is not valid then we can return early since it will not match any file anyway. Fixes #13518