rails--rails/actionpack/test/fixtures
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
..
alternate_helpers
bad_customers
filter_test/implicit_actions
functional_caching Ensure LookupContext in Digestor selects correct variant 2014-03-09 08:47:17 +01:00
helpers Remove HelperyTestHelper not used in any test 2013-09-14 10:40:28 -07:00
helpers1_pack
helpers2_pack
layouts Remove unneeded test fixtures in AV 2013-06-20 17:23:16 +02:00
localized Fix header Content-Type: #<Mime::NullType:...> in localized template 2013-12-03 07:46:39 +01:00
multipart UTF-8 encode all keys and values in nested params hash. 2013-03-15 09:17:03 +08:00
old_content_type
post_test
public Refactor out Dir.glob from ActionDispatch::Static 2014-08-27 13:03:08 -05:00
respond_to Add any/all support for variants 2013-12-26 20:36:17 +01:00
session_autoload_test/session_autoload_test
star_star_mime
symlink_parent
test Remove unused fixtures 2014-07-16 14:48:45 -03:00
公共 Refactor out Dir.glob from ActionDispatch::Static 2014-08-27 13:03:08 -05:00
_top_level_partial_only.erb
company.rb
ruby_template.ruby
shared.html.erb