Merge pull request #40675 from nextcloud/fix/unifiedsearch/search-0

fix(unifiedsearch): Allow searching for "0"
pull/40644/head
Christoph Wurst 2 years ago committed by GitHub
commit f174e4a057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/Controller/UnifiedSearchController.php

@ -100,7 +100,7 @@ class UnifiedSearchController extends OCSController {
?int $limit = null,
$cursor = null,
string $from = ''): DataResponse {
if (empty(trim($term))) {
if (trim($term) === "") {
return new DataResponse(null, Http::STATUS_BAD_REQUEST);
}
[$route, $routeParameters] = $this->getRouteInformation($from);

Loading…
Cancel
Save