From c6d970b857d193cee29c26ac553d8313fbafbea2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 14 Nov 2013 15:10:33 +0400 Subject: [PATCH] search to sql: use str_getcsv instead of explode to support quoted long string tokens --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index ba2e90bd4..565ff0e55 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2243,7 +2243,7 @@ $search_query_part = ""; - $keywords = explode(" ", $search); + $keywords = str_getcsv($search, " "); $query_keywords = array(); $search_words = array();