Ignore whitespace in sharing by mail

Signed-off-by: onehappycat <one.happy.cat@gmx.com>
pull/21977/head
onehappycat 6 years ago
parent ce314d9484
commit e04525c186
  1. 3
      lib/private/Collaboration/Collaborators/Search.php

@ -54,6 +54,9 @@ class Search implements ISearch {
public function search($search, array $shareTypes, $lookup, $limit, $offset) {
$hasMoreResults = false;
// Trim leading and trailing whitespace characters, e.g. when query is copy-pasted
$search = trim($search);
/** @var ISearchResult $searchResult */
$searchResult = $this->c->resolve(SearchResult::class);

Loading…
Cancel
Save