Merge pull request #21977 from onehappycat/issue_21960

Ignore whitespace in sharing by mail
This commit is contained in:
Morris Jobke 2020-07-24 13:37:36 +02:00 committed by GitHub
commit 15561b4e0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);