summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2018-01-22 20:48:59 +0100
committerGitHub <noreply@github.com>2018-01-22 20:48:59 +0100
commit0f1da65f2a518cbf258e82998c4114bc61c2f75f (patch)
tree0b16d734b427a13f9e377ab97f2b2cf771c6b49c
parent8a553366cca4e022bc8c4f32ad20227756a86aaa (diff)
parentb2e5b5c44db9683e17034d72d810c0b21211dac2 (diff)
Merge pull request #421 from MyIgel/master
Prevent empty string after $tokens = explode(' ', $search);
-rw-r--r--includes/pages/admin_arrive.php1
1 files changed, 1 insertions, 0 deletions
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'))) {