diff options
author | Joas Schilling <coding@schilljs.com> | 2018-02-06 18:11:44 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-02-20 17:38:32 +0100 |
commit | b30e035e25923101345dc02b7e82936cbef9b811 (patch) | |
tree | 6b06abf14b19253e9be4b64c3bace7b28b028d20 /lib/private/Collaboration/Collaborators/RemotePlugin.php | |
parent | 8fa86bf68b7ecf9923152bcc638c0f17b58c014f (diff) | |
download | nextcloud-server-b30e035e25923101345dc02b7e82936cbef9b811.tar.gz nextcloud-server-b30e035e25923101345dc02b7e82936cbef9b811.zip |
Better result handling of email search
1. Local users should not be returned when searching for empty string
2. The limit of the response should be respected
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration/Collaborators/RemotePlugin.php')
-rw-r--r-- | lib/private/Collaboration/Collaborators/RemotePlugin.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Collaboration/Collaborators/RemotePlugin.php b/lib/private/Collaboration/Collaborators/RemotePlugin.php index b17a64e4ff1..e0f5298f83b 100644 --- a/lib/private/Collaboration/Collaborators/RemotePlugin.php +++ b/lib/private/Collaboration/Collaborators/RemotePlugin.php @@ -102,6 +102,8 @@ class RemotePlugin implements ISearchPlugin { if (!$this->shareeEnumeration) { $result['wide'] = []; + } else { + $result['wide'] = array_slice($result['wide'], $offset, $limit); } if (!$searchResult->hasExactIdMatch($resultType) && $this->cloudIdManager->isValidCloudId($search) && $offset === 0) { |