X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/d951621c4488c58ec6caf12daf81a2b048fd40b1..97bb13595750d2ba5d03a5abe2ede7cd11a8a481:/app/controllers/application_controller.rb?ds=sidebyside diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d0898bf5e..bb32e7e6e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -349,7 +349,7 @@ class ApplicationController < ActionController::Base elsif current_user set_locale respond_to do |format| - format.html { redirect_to :controller => "errors", :action => "forbidden" } + format.html { redirect_to :controller => "/errors", :action => "forbidden" } format.any { report_error t("application.permission_denied"), :forbidden } end elsif request.get? @@ -397,7 +397,7 @@ class ApplicationController < ActionController::Base referer = nil end - referer.to_s + referer&.to_s end def scope_enabled?(scope)