mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #40675 from nextcloud/fix/unifiedsearch/search-0
fix(unifiedsearch): Allow searching for "0"
This commit is contained in:
commit
f174e4a057
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue