Skip to content

Commit 3c3bbc5

Browse files
committed
Allow redirects to external paths when creating a user account
1 parent 4f2ad8f commit 3c3bbc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/controllers/users_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def index
1515
def new
1616
authorize! :create, User
1717
alternative_location = SiteSetting.all_settings['signup_location']
18-
return redirect_to alternative_location if alternative_location
18+
return redirect_to(alternative_location, allow_other_host: true) if alternative_location
1919
add_breadcrumb 'Sign up', new_user_path
2020

2121
if signed_in?

0 commit comments

Comments
 (0)