Ignore whitespace in sharing by mail

Signed-off-by: onehappycat <one.happy.cat@gmx.com>
This commit is contained in:
onehappycat 2020-07-23 22:20:18 +02:00 committed by backportbot[bot]
parent 4bd985cdd4
commit b004ce9d72

View file

@ -52,6 +52,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);