diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-09-28 17:18:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 17:18:37 +0200 |
commit | f174e4a0575284fd6eb14ec2365962213093441f (patch) | |
tree | 8104f93c9292fa06b06477d8420b89258c94473a | |
parent | 2080d9d953c4e80cd3f6f0e531a09d20d7ccce1f (diff) | |
parent | dbd666e82b8ce9e38bf082f8f47647e00e21bce1 (diff) | |
download | nextcloud-server-f174e4a0575284fd6eb14ec2365962213093441f.tar.gz nextcloud-server-f174e4a0575284fd6eb14ec2365962213093441f.zip |
Merge pull request #40675 from nextcloud/fix/unifiedsearch/search-0
fix(unifiedsearch): Allow searching for "0"
-rw-r--r-- | core/Controller/UnifiedSearchController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php index d0dfd1bf7da..9704850bb1f 100644 --- a/core/Controller/UnifiedSearchController.php +++ b/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); |