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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
91ec7343
Commit
91ec7343
authored
Mar 18, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sanitize the entire geo_return_to_after_login url
parent
808c2872
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ee/app/controllers/ee/sessions_controller.rb
ee/app/controllers/ee/sessions_controller.rb
+1
-1
ee/spec/controllers/ee/sessions_controller_spec.rb
ee/spec/controllers/ee/sessions_controller_spec.rb
+1
-1
No files found.
ee/app/controllers/ee/sessions_controller.rb
View file @
91ec7343
...
...
@@ -41,7 +41,7 @@ module EE
end
def
geo_return_to_after_login
::
Gitlab
::
Utils
.
append_path
(
root_url
,
sanitize_redirect
(
session
[
:user_return_to
].
to_s
))
sanitize_redirect
(
::
Gitlab
::
Utils
.
append_path
(
root_url
,
session
[
:user_return_to
].
to_s
))
end
def
geo_return_to_after_logout
...
...
ee/spec/controllers/ee/sessions_controller_spec.rb
View file @
91ec7343
...
...
@@ -28,7 +28,7 @@ describe SessionsController do
expect
(
response
).
to
have_gitlab_http_status
(
302
)
expect
(
response
).
to
redirect_to
%r(
\A
#{
primary_node
.
url
}
oauth/geo/auth)
expect
(
redirect_params
[
'state'
].
first
).
to
end_with
(
':
/
'
)
expect
(
redirect_params
[
'state'
].
first
).
to
end_with
(
':'
)
end
end
...
...
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