-
- Downloads
There was an error fetching the commit references. Please try again later.
Reuses `InternalRedirect` when possible
`InternalRedirect` prevents Open redirect issues by only allowing redirection to paths on the same host. It cleans up any unwanted strings from the path that could point to another host (fe. //about.gitlab.com/hello). While preserving the querystring and fragment of the uri. It is already used by: - `TermsController` - `ContinueParams` - `ImportsController` - `ForksController` - `SessionsController`: Only for verifying the host in CE. EE allows redirecting to a different instance using Geo.
Showing
- app/controllers/concerns/continue_params.rb 2 additions, 2 deletionsapp/controllers/concerns/continue_params.rb
- app/controllers/sessions_controller.rb 2 additions, 7 deletionsapp/controllers/sessions_controller.rb
- spec/controllers/concerns/continue_params_spec.rb 45 additions, 0 deletionsspec/controllers/concerns/continue_params_spec.rb
- spec/controllers/sessions_controller_spec.rb 1 addition, 1 deletionspec/controllers/sessions_controller_spec.rb
Please register or sign in to comment