aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/host_authorization.rb
diff options
context:
space:
mode:
authorGenadi Samokovarov <gsamokovarov@gmail.com>2019-01-29 18:47:55 +0200
committerGenadi Samokovarov <gsamokovarov@gmail.com>2019-02-03 10:58:10 +0200
commitca62dfeede0c5352baf6c65688c71b9cd909c831 (patch)
tree6f0e9b85ba73f70bfc0b99b41ee2491a0f691ef8 /actionpack/lib/action_dispatch/middleware/host_authorization.rb
parent8309cd2c68f548987b8447475c7735a19714baaa (diff)
downloadrails-ca62dfeede0c5352baf6c65688c71b9cd909c831.tar.gz
rails-ca62dfeede0c5352baf6c65688c71b9cd909c831.tar.bz2
rails-ca62dfeede0c5352baf6c65688c71b9cd909c831.zip
Cleanup the whitelisting references after #33145
During the development of #33145, I have named a few concepts in the code as `whitelisted`. We decided to stay away from the term and I adjusted most of the code afterwards, but here are the cases I forgot to change. I also found a case in the API guide that we could have cleaned up as well. [ci skip]
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/host_authorization.rb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/host_authorization.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/host_authorization.rb b/actionpack/lib/action_dispatch/middleware/host_authorization.rb
index 447b70112a..b7dff1df41 100644
--- a/actionpack/lib/action_dispatch/middleware/host_authorization.rb
+++ b/actionpack/lib/action_dispatch/middleware/host_authorization.rb
@@ -3,8 +3,8 @@
require "action_dispatch/http/request"
module ActionDispatch
- # This middleware guards from DNS rebinding attacks by white-listing the
- # hosts a request can be sent to.
+ # This middleware guards from DNS rebinding attacks by explicitly permitting
+ # the hosts a request can be sent to.
#
# When a request comes to an unauthorized host, the +response_app+
# application will be executed and rendered. If no +response_app+ is given, a