From 1a1b3e20e470a945dd9f5fab1d99174b10cbb141 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Mon, 3 Aug 2020 12:54:37 +0200 Subject: Fix unified search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- core/Controller/UnifiedSearchController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/Controller/UnifiedSearchController.php') diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php index ddb1745dea5..ecc5192ff31 100644 --- a/core/Controller/UnifiedSearchController.php +++ b/core/Controller/UnifiedSearchController.php @@ -78,7 +78,7 @@ class UnifiedSearchController extends Controller { ?int $sortOrder = null, ?int $limit = null, $cursor = null): JSONResponse { - if (empty($term)) { + if (empty(trim($term))) { return new JSONResponse(null, Http::STATUS_BAD_REQUEST); } -- cgit v1.2.3