BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1f813024
Commit
1f813024
authored
Apr 10, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't leak existence of project via search autocomplete.
parent
24d139ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
CHANGELOG
CHANGELOG
+2
-0
search_controller.rb
app/controllers/search_controller.rb
+6
-1
No files found.
CHANGELOG
View file @
1f813024
Please view this file on the master branch, on stable branches it's out of date.
v 7.10.0 (unreleased)
- Don't leak existence of project via search autocomplete.
- Fix broken file browsing with a submodule that contains a relative link (Stan Hu)
- Fix bug where Wiki pages that included a '/' were no longer accessible (Stan Hu)
- Fix bug where error messages from Dropzone would not be displayed on the issues page (Stan Hu)
- Add ability to configure Reply-To address in gitlab.yml (Stan Hu)
...
...
app/controllers/search_controller.rb
View file @
1f813024
...
...
@@ -35,7 +35,12 @@ class SearchController < ApplicationController
def
autocomplete
term
=
params
[
:term
]
@project
=
Project
.
find
(
params
[
:project_id
])
if
params
[
:project_id
].
present?
if
params
[
:project_id
].
present?
@project
=
Project
.
find_by
(
id:
params
[
:project_id
])
@project
=
nil
unless
can?
(
current_user
,
:read_project
,
@project
)
end
@ref
=
params
[
:project_ref
]
if
params
[
:project_ref
].
present?
render
json:
search_autocomplete_opts
(
term
).
to_json
...
...
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