Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
4f235f1940ca
Commit
dfb96ed8
authored
Mar 07, 2016
by
Zeger-Jan van de Weg
Browse files
ContinueToParams -> ContinueParams
parent
8d89017698a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
4f235f19
...
...
@@ -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
...
...
app/controllers/concerns/continue_
to_
params.rb
→
app/controllers/concerns/continue_params.rb
View file @
4f235f19
module
Continue
To
Params
module
ContinueParams
extend
ActiveSupport
::
Concern
def
continue_params
...
...
@@ -6,7 +6,7 @@ def continue_params
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
...
...
app/controllers/projects/forks_controller.rb
View file @
4f235f19
class
Projects::ForksController
<
Projects
::
ApplicationController
include
Continue
To
Params
include
ContinueParams
# Authorize
before_action
:require_non_empty_project
...
...
app/controllers/projects/imports_controller.rb
View file @
4f235f19
class
Projects::ImportsController
<
Projects
::
ApplicationController
include
Continue
To
Params
include
ContinueParams
# Authorize
before_action
:authorize_admin_project!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment