about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-01-02 17:14:58 +0100
committerGitHub <noreply@github.com>2020-01-02 17:14:58 +0100
commit09d54d1f626163fcc6e282544dfc9939fd3cdfd3 (patch)
tree4e19c261bb8cdc3d64228a0299072a286d409fa3 /config/initializers
parent9edab7afafd6f6db9338ada83a84b2ef14f397a9 (diff)
Fix uncaught query param encoding errors (#12741)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/rack_attack.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb
index 273cac9ca..3cd7ea3a6 100644
--- a/config/initializers/rack_attack.rb
+++ b/config/initializers/rack_attack.rb
@@ -46,10 +46,7 @@ class Rack::Attack
 
   PROTECTED_PATHS_REGEX = Regexp.union(PROTECTED_PATHS.map { |path| /\A#{Regexp.escape(path)}/ })
 
-  # Always allow requests from localhost
-  # (blocklist & throttles are skipped)
   Rack::Attack.safelist('allow from localhost') do |req|
-    # Requests are allowed if the return value is truthy
     req.remote_ip == '127.0.0.1' || req.remote_ip == '::1'
   end