Skip to content
Snippets Groups Projects
Commit e04525c1 authored by onehappycat's avatar onehappycat
Browse files

Ignore whitespace in sharing by mail

parent ce314d94
No related branches found
No related tags found
No related merge requests found
...@@ -54,6 +54,9 @@ class Search implements ISearch { ...@@ -54,6 +54,9 @@ class Search implements ISearch {
public function search($search, array $shareTypes, $lookup, $limit, $offset) { public function search($search, array $shareTypes, $lookup, $limit, $offset) {
$hasMoreResults = false; $hasMoreResults = false;
// Trim leading and trailing whitespace characters, e.g. when query is copy-pasted
$search = trim($search);
/** @var ISearchResult $searchResult */ /** @var ISearchResult $searchResult */
$searchResult = $this->c->resolve(SearchResult::class); $searchResult = $this->c->resolve(SearchResult::class);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment