]> git.wh0rd.org Git - tt-rss.git/commitdiff
search to sql: use str_getcsv instead of explode to support quoted long string tokens
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 14 Nov 2013 11:10:33 +0000 (15:10 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 14 Nov 2013 11:10:33 +0000 (15:10 +0400)
include/functions.php

index ba2e90bd4a868e4d595c3a28fd5312226df03997..565ff0e55ffa80395df31fea66252d4d8c0d2af4 100644 (file)
 
                $search_query_part = "";
 
-               $keywords = explode(" ", $search);
+               $keywords = str_getcsv($search, " ");
                $query_keywords = array();
                $search_words = array();