diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-09-28 10:53:07 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-09-28 10:53:07 +0200 |
commit | dbd666e82b8ce9e38bf082f8f47647e00e21bce1 (patch) | |
tree | 8ae5b44e9c8abfc1a14c2ab44cf895981c4c8caf /core/Controller | |
parent | 99e287b49abaa1c0807a5bb6e7bae6d6f764f82d (diff) | |
download | nextcloud-server-dbd666e82b8ce9e38bf082f8f47647e00e21bce1.tar.gz nextcloud-server-dbd666e82b8ce9e38bf082f8f47647e00e21bce1.zip |
fix(unifiedsearch): Allow searching for "0"
empty("0") evaluates to true
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/Controller')
-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); |