Skip to content
Snippets Groups Projects
Commit dfb96ed8 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

ContinueToParams -> ContinueParams

parent 1cefb73a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -45,6 +45,7 @@ v 8.5.3
- Show commit message in JIRA mention comment
- Makes issue page and merge request page usable on mobile browsers.
- Improved UI for profile settings
- Continue parameters are checked to ensure redirection goes to the same instance
 
v 8.5.2
- Fix sidebar overlapping content when screen width was below 1200px
Loading
Loading
module ContinueToParams
module ContinueParams
extend ActiveSupport::Concern
 
def continue_params
Loading
Loading
@@ -6,7 +6,7 @@ module ContinueToParams
return nil unless continue_params
 
continue_params = continue_params.permit(:to, :notice, :notice_now)
continue_params[:to] = root_url unless continue_params[:to].start_with?('/')
return unless continue_params[:to] && continue_params[:to].start_with?('/')
 
continue_params
end
Loading
Loading
class Projects::ForksController < Projects::ApplicationController
include ContinueToParams
include ContinueParams
 
# Authorize
before_action :require_non_empty_project
Loading
Loading
class Projects::ImportsController < Projects::ApplicationController
include ContinueToParams
include ContinueParams
 
# Authorize
before_action :authorize_admin_project!
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment