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/controller
Earl J St Sauver 9ff18e4626
LOCALHOST definition should match any 127.0.0.0/8 address
The entire 127.0.0.0/8 range is assigned to the loopback address, not
only 127.0.0.0/24. This patch allows ActionDispatch::Request::LOCALHOST
to match any IPv4 127.0.0.0/8 loopback address.

The only place that the #local? method was previously under test was
in the show_expectations_test.rb file. I don't particularly like that
that's implicitly where this code is under test, and I feel like I
should move some of that testing code into the
test/dispatch/request_test.rb file, but I wanted some feedback first.

Credit goes to @sriedel for discovering the issue and adding the
patch.
2014-07-18 13:23:45 -04:00
..
controller_fixtures
mime Address CVE-2014-4671 (JSONP Flash exploit) 2014-07-09 11:37:19 -07:00
new_base Fix typos like a html to an html and 'an mail' to 'an email'. [ci skip] 2014-07-14 00:14:47 +05:30
parameters Merge pull request #15933 from rafael/master 2014-06-27 18:16:52 -03:00
request
action_pack_assertions_test.rb Prefer assert_raise instead of flunk + rescue to test for exceptions 2013-12-19 09:20:51 -02:00
assert_select_test.rb Restore test deliveries for ActionMailer. 2014-06-07 00:18:50 +08:00
base_test.rb Remove ActionController::RecordIdentifier was deprecated. 2013-06-01 23:22:12 +09:00
caching_test.rb Add controller and action name to the instrumentation payload 2014-05-10 09:35:29 +00:00
content_type_test.rb Add with_default_charset helper. 2014-05-28 21:17:16 +08:00
default_url_options_with_before_action_test.rb
filters_test.rb Deprecate all *_filter callbacks in favor of *_action callbacks 2014-05-27 19:10:14 -03:00
flash_hash_test.rb Convert FlashHash in a Hash with indifferent access 2014-02-11 01:54:17 -08:00
flash_test.rb Remove unused subclass_controller_with_flash_type_bar var from flash test. 2014-04-07 10:34:17 +05:30
force_ssl_test.rb Remove tests method for test cases when controller can be inferred. 2014-05-03 23:55:23 -07:00
helper_test.rb pass app config to controller helper proxy 2013-10-24 08:03:31 +03:00
http_basic_authentication_test.rb Check authentication scheme in Basic auth 2013-07-07 22:39:16 +09:00
http_digest_authentication_test.rb Typos. return -> returns. [ci skip] 2013-12-03 13:31:36 -02:00
http_token_authentication_test.rb Improve token_and_options regex and test 2014-07-01 13:08:22 -07:00
integration_test.rb Rails-ish apps should descend from Rails::Railtie 2014-07-16 15:41:47 -07:00
live_stream_test.rb Handle client disconnect during live streaming 2014-06-08 07:21:14 +09:30
localized_templates_test.rb Move I18n.locale setting into setup and teardown. 2014-05-28 21:50:30 +08:00
log_subscriber_test.rb fix filesystem race condition 2014-07-17 14:04:55 -07:00
output_escaping_test.rb
params_wrapper_test.rb Clear inflections after test. 2014-05-28 23:33:10 +08:00
permitted_params_test.rb
redirect_test.rb Don't accept parameters as argument for redirect to [via @homakov] 2014-07-16 12:21:51 -03:00
render_js_test.rb CSRF protection from cross-origin <script> tags 2013-12-17 13:14:17 -07:00
render_json_test.rb Address CVE-2014-4671 (JSONP Flash exploit) 2014-07-09 11:37:19 -07:00
render_other_test.rb Add and remove renderer inside the test to prevent leak. 2014-05-28 22:24:22 +08:00
render_test.rb Remove redundant code. 2014-06-05 18:34:39 -07:00
render_xml_test.rb
request_forgery_protection_test.rb Avoid hardcoded value in teardown. 2014-05-28 22:35:48 +08:00
required_params_test.rb Merge pull request #15692 from sromano/falseClass 2014-06-14 06:14:19 +09:30
rescue_test.rb
resources_test.rb fixed-case when invalid action name has passed 2013-11-28 03:14:19 +05:30
routing_test.rb stop calling url_for with recall parameters and actually use a request 2014-07-15 15:19:41 -07:00
runner_test.rb
selector_test.rb
send_file_test.rb Prevent state leak. 2014-06-05 18:34:39 -07:00
show_exceptions_test.rb LOCALHOST definition should match any 127.0.0.0/8 address 2014-07-18 13:23:45 -04:00
streaming_test.rb
test_case_test.rb Remove symbolized_path_parameters. 2014-07-02 16:05:55 -07:00
url_for_integration_test.rb stop passing recall to url_for 2014-07-15 15:53:00 -07:00
url_for_test.rb helper methods are public, so we can just call them 2014-07-17 10:04:52 -07:00
url_rewriter_test.rb
webservice_test.rb Eliminate JSON.{parse,load,generate,dump} and def to_json 2013-11-05 22:26:45 -08:00