Empty HTTP_REFERER handling
Created by: kevinvalk
When having REFERERS disabled in your browser (thus not sending referers) gitlab fails to correctly handle this and just throws a 500 error. I would suspect a nicer way to handle this.
Redirected to
Completed 500 Internal Server Error in 315ms
ActionController::RedirectBackError (No HTTP_REFERER was set in the request to this action, so redirect_to :back could not be called successfully. If this is a test, make sure to specify request.env["HTTP_REFERER"].):
app/controllers/profiles_controller.rb:25:in `block (2 levels) in update'
app/controllers/profiles_controller.rb:24:in `update'
app/controllers/application_controller.rb:57:in `set_current_user_for_thread'