summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-11-14 15:10:33 +0400
committerAndrew Dolgov <[email protected]>2013-11-14 15:10:33 +0400
commitc6d970b857d193cee29c26ac553d8313fbafbea2 (patch)
tree18ddf782b0d770499f9b913415875bf9cd3ac016 /include
parent5a450b87609b6638e1dcb288d9e566f005735f56 (diff)
search to sql: use str_getcsv instead of explode to support quoted long string tokens
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
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();