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 Use redefine_method since baz is already defined. 2010-09-28 18:31:52 -03:00
bad_customers Missed adds. References #11491. 2008-04-01 00:56:59 +00:00
filter_test/implicit_actions Add a failing test case for an implicit action with a before filter. 2011-03-23 23:32:44 +00:00
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 Fixed the layout defaults (closes #9564) [lifo] 2007-09-28 01:23:20 +00:00
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 Fixed that an ArgumentError is thrown when request.session_options[:id] is read in the following scenario: when the cookie store is used, and the session contains a serialized object of an unloaded class, and no session data accesses have occurred yet. Pushed the stale_session_check responsibility out of the SessionHash and down into the session store, closer to where the deserialization actually occurs. Added some test coverage for this case and others related to deserialization of unloaded types. 2010-06-27 22:39:06 +02:00
star_star_mime add the fixture file 2010-11-22 23:06:13 +01:00
symlink_parent Fix layouts in symlinked paths. Closes #9136 [court3nay, caio] 2008-03-28 20:54:26 +00:00
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 Fix rendering partials at the top level [#795 state:resolved] 2008-08-13 19:15:35 -05:00
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 Fixed render :template for templates in top level of view path. [#54 state:resolved] 2008-05-01 10:21:46 +01:00