From 28539f6aafba872c5ca4ab3266357664b8b39a6b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Aug 2015 10:31:29 +0300 Subject: [PATCH] search_to_sql: trim() input --- include/functions2.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions2.php b/include/functions2.php index 9bbfc7b2..b4018453 100644 --- a/include/functions2.php +++ b/include/functions2.php @@ -284,7 +284,7 @@ function search_to_sql($search, $search_language) { - $keywords = str_getcsv($search, " "); + $keywords = str_getcsv(trim($search), " "); $query_keywords = array(); $search_words = array(); $search_query_leftover = array(); -- 2.39.5