From 75be84f895e05f4c51caa3fcadb0d5fe21b28404 Mon Sep 17 00:00:00 2001 From: xfnw Date: Mon, 14 Dec 2020 22:07:22 -0500 Subject: [PATCH] fix tagging, oops lol --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index d5a54aa..acb7e2d 100644 --- a/index.php +++ b/index.php @@ -28,7 +28,7 @@ if (isset($_GET['q']) && preg_replace('/\s+/', '', $_GET['q']) != '') { $sql = 'SELECT * FROM indexed WHERE 1=1'; - $terms = explode(' ', preg_replace('/\s+/', '', $_GET['q'])); + $terms = explode(' ', trim(preg_replace('/\s+/', ' ', $_GET['q']))); $params = array(); foreach ($terms as $term) { if (substr($term, 0, 1) == '-') {