]> git.openstreetmap.org Git - rails.git/commitdiff
Enable open redirect protection
authorTom Hughes <tom@compton.nu>
Tue, 1 Mar 2022 18:39:08 +0000 (18:39 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 1 Mar 2022 18:39:08 +0000 (18:39 +0000)
config/initializers/new_framework_defaults_7_0.rb

index a5edd72ff47776aabec083eafe7e8f5d1eb5275c..e41b6c7d1f759e06402392aa2a8e1cd725148544 100644 (file)
@@ -73,7 +73,7 @@ Rails.application.config.active_record.verify_foreign_keys_for_fixtures = true
 Rails.application.config.active_record.partial_inserts = false
 
 # Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`.
 Rails.application.config.active_record.partial_inserts = false
 
 # Protect from open redirect attacks in `redirect_back_or_to` and `redirect_to`.
-Rails.application.config.action_controller.raise_on_open_redirects = true
+Rails.application.config.action_controller.raise_on_open_redirects = true
 
 # Change the variant processor for Active Storage.
 # Changing this default means updating all places in your code that
 
 # Change the variant processor for Active Storage.
 # Changing this default means updating all places in your code that