Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
dfb96ed8
Commit
dfb96ed8
authored
Mar 07, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ContinueToParams -> ContinueParams
parent
1cefb73a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
CHANGELOG
CHANGELOG
+1
-0
app/controllers/concerns/continue_params.rb
app/controllers/concerns/continue_params.rb
+2
-2
app/controllers/projects/forks_controller.rb
app/controllers/projects/forks_controller.rb
+1
-1
app/controllers/projects/imports_controller.rb
app/controllers/projects/imports_controller.rb
+1
-1
No files found.
CHANGELOG
View file @
dfb96ed8
...
@@ -45,6 +45,7 @@ v 8.5.3
...
@@ -45,6 +45,7 @@ v 8.5.3
- Show commit message in JIRA mention comment
- Show commit message in JIRA mention comment
- Makes issue page and merge request page usable on mobile browsers.
- Makes issue page and merge request page usable on mobile browsers.
- Improved UI for profile settings
- Improved UI for profile settings
- Continue parameters are checked to ensure redirection goes to the same instance
v 8.5.2
v 8.5.2
- Fix sidebar overlapping content when screen width was below 1200px
- 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 @
dfb96ed8
module
Continue
To
Params
module
ContinueParams
extend
ActiveSupport
::
Concern
extend
ActiveSupport
::
Concern
def
continue_params
def
continue_params
...
@@ -6,7 +6,7 @@ module ContinueToParams
...
@@ -6,7 +6,7 @@ module ContinueToParams
return
nil
unless
continue_params
return
nil
unless
continue_params
continue_params
=
continue_params
.
permit
(
:to
,
:notice
,
:notice_now
)
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
continue_params
end
end
...
...
app/controllers/projects/forks_controller.rb
View file @
dfb96ed8
class
Projects::ForksController
<
Projects
::
ApplicationController
class
Projects::ForksController
<
Projects
::
ApplicationController
include
Continue
To
Params
include
ContinueParams
# Authorize
# Authorize
before_action
:require_non_empty_project
before_action
:require_non_empty_project
...
...
app/controllers/projects/imports_controller.rb
View file @
dfb96ed8
class
Projects::ImportsController
<
Projects
::
ApplicationController
class
Projects::ImportsController
<
Projects
::
ApplicationController
include
Continue
To
Params
include
ContinueParams
# Authorize
# Authorize
before_action
:authorize_admin_project!
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