Skip to content

Commit

Permalink
Merge pull request #40675 from nextcloud/fix/unifiedsearch/search-0
Browse files Browse the repository at this point in the history
fix(unifiedsearch): Allow searching for "0"
  • Loading branch information
ChristophWurst authored Sep 28, 2023
2 parents 2080d9d + dbd666e commit f174e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Controller/UnifiedSearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public function search(string $providerId,
?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);
Expand Down

0 comments on commit f174e4a

Please sign in to comment.