mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Merge pull request #21991 from nextcloud/backport/21977/stable19
[stable19] Ignore whitespace in sharing by mail
This commit is contained in:
commit
fa9bc471b5
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue