From b2e5b5c44db9683e17034d72d810c0b21211dac2 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Thu, 28 Dec 2017 14:17:42 +0100 Subject: [PATCH] Prevent empty string after $tokens = explode(' ', $search); --- includes/pages/admin_arrive.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/pages/admin_arrive.php b/includes/pages/admin_arrive.php index 48e2c91f..e925bfd4 100644 --- a/includes/pages/admin_arrive.php +++ b/includes/pages/admin_arrive.php @@ -21,6 +21,7 @@ function admin_arrive() if ($request->has('search')) { $search = strip_request_item('search'); + $search = trim($search); } if ($request->has('reset') && preg_match('/^\d+$/', $request->input('reset'))) {