searpl

a small php sqlite search engine. <a href="https://thunix.net/~xfnw/search">see it in action</a>
Log | Files | Refs | README

commit 75be84f895e05f4c51caa3fcadb0d5fe21b28404
parent 79ba217da2ee6822a6114e5f384716eeb5df5013
Author: xfnw <xfnw@thunix.net>
Date:   Mon, 14 Dec 2020 22:07:22 -0500

fix tagging, oops lol

Diffstat:
Mindex.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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) == '-') {