summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2023-09-28 17:18:37 +0200
committerGitHub <noreply@github.com>2023-09-28 17:18:37 +0200
commitf174e4a0575284fd6eb14ec2365962213093441f (patch)
tree8104f93c9292fa06b06477d8420b89258c94473a
parent2080d9d953c4e80cd3f6f0e531a09d20d7ccce1f (diff)
parentdbd666e82b8ce9e38bf082f8f47647e00e21bce1 (diff)
downloadnextcloud-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.php2
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);