rails--rails/actionpack/test
schneems 0b1a87f73c Refactor out Dir.glob from ActionDispatch::Static
Dir.glob can be a security concern. The original use was to provide logic of fallback files. Example a request to `/` should render the file from `/public/index.html`. We can replace the dir glob with the specific logic it represents. The glob {,index,index.html} will look for the current path, then in the directory of the path with index file and then in the directory of the path with index.html. This PR replaces the glob logic by manually checking each potential match. Best case scenario this results in one less file API request, worst case, this has one more file API request.

Related to #16464

Update: added a test for when a file of a given name (`public/bar.html` and a directory `public/bar` both exist in the same root directory. Changed logic to accommodate this scenario.
2014-08-27 13:03:08 -05:00
..
abstract Partially revert deprecation of *_filter 2014-06-03 19:53:28 -03:00
assertions Change all `MiniTest` to `Minitest` since, `MiniTest` namespace has been renamed to `Minitest` 2013-12-18 14:39:50 +05:30
controller Merge pull request #16570 from bradleybuda/breach-mitigation-mask-csrf-token 2014-08-19 18:17:07 -07:00
dispatch Refactor out Dir.glob from ActionDispatch::Static 2014-08-27 13:03:08 -05:00
fixtures Refactor out Dir.glob from ActionDispatch::Static 2014-08-27 13:03:08 -05:00
journey Improve router test. 2014-08-21 16:35:39 +08:00
lib/controller Eliminate `JSON.{parse,load,generate,dump}` and `def to_json` 2013-11-05 22:26:45 -08:00
routing Deprecate `*_path` methods in mailers 2014-07-30 12:01:45 -05:00
tmp
abstract_unit.rb UnexpectedErrors may reference exceptions that can't be dumped 2014-08-13 14:22:49 -07:00