1
0
Mirror von https://github.com/nextcloud/server.git synchronisiert 2024-08-13 14:11:10 +02:00

fix(unifiedsearch): Allow searching for "0"

empty("0") evaluates to true

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Dieser Commit ist enthalten in:
Christoph Wurst 2023-09-28 10:53:07 +02:00
Ursprung 99e287b49a
Commit dbd666e82b
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: CC42AC2A7F0E56D8

Datei anzeigen

@ -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);