Skip to content

Commit

Permalink
Merge pull request #21977 from onehappycat/issue_21960
Browse files Browse the repository at this point in the history
Ignore whitespace in sharing by mail
  • Loading branch information
MorrisJobke authored Jul 24, 2020
2 parents 1326862 + e04525c commit 15561b4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Collaboration/Collaborators/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ public function __construct(IContainer $c) {
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);

Expand Down

0 comments on commit 15561b4

Please sign in to comment.