Skip to content

Commit 107dd46

Browse files
authored
Merge pull request rails#46139 from walro/fix/guide-redirect-error
Fix incorrect error class for `config.action_controller.raise_on_open_redirects` in the configuring guide
2 parents 7de6670 + 0cce959 commit 107dd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/configuring.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ Rendered recordings/threads/_thread.html.erb in 1.5 ms [cache miss]
13551355
13561356
#### `config.action_controller.raise_on_open_redirects`
13571357
1358-
Raises an `ArgumentError` when an unpermitted open redirect occurs.
1358+
Raises an `ActionController::Redirecting::UnsafeRedirectError` when an unpermitted open redirect occurs.
13591359
13601360
The default value depends on the `config.load_defaults` target version:
13611361

0 commit comments

Comments
 (0)