Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
7c3c43e2
Commit
7c3c43e2
authored
Nov 09, 2016
by
Vincent Petry
Committed by
GitHub
Nov 09, 2016
Browse files
Merge pull request #26559 from IljaN/master
Username autocomplete option in admin menu now also toggles autocomp…
parents
52f19721
861011cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/ajax/share.php
View file @
7c3c43e2
...
...
@@ -212,7 +212,11 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$result
=
[];
if
(
isset
(
$_GET
[
'search'
]))
{
$cm
=
OC
::
$server
->
getContactsManager
();
if
(
!
is_null
(
$cm
)
&&
$cm
->
isEnabled
())
{
$userEnumerationAllowed
=
OC
::
$server
->
getConfig
()
->
getAppValue
(
'core'
,
'shareapi_allow_share_dialog_user_enumeration'
,
'no'
)
==
'yes'
;
if
(
!
is_null
(
$cm
)
&&
$cm
->
isEnabled
()
&&
$userEnumerationAllowed
)
{
$contacts
=
$cm
->
search
((
string
)
$_GET
[
'search'
],
[
'FN'
,
'EMAIL'
]);
foreach
(
$contacts
as
$contact
)
{
if
(
!
isset
(
$contact
[
'EMAIL'
]))
{
...
...
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