1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
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 Fix sorting of helpers from different paths 2012-05-28 06:58:48 +02:00
helpers2_pack Fix sorting of helpers from different paths 2012-05-28 06:58:48 +02:00
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 removes the RJS template handler 2011-04-13 13:23:18 +02:00
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 Remove integration between attr_accessible/protected and AC::Metal::ParamsWrapper 2012-09-16 23:58:20 -05:00
ruby_template.ruby Rename .rb template handler to .ruby to avoid conflicts with mustache views classes 2012-09-17 10:07:08 -05:00
shared.html.erb