]> git.wh0rd.org - tt-rss.git/commitdiff
search_to_sql: trim() input
authorAndrew Dolgov <noreply@fakecake.org>
Fri, 14 Aug 2015 07:31:29 +0000 (10:31 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Fri, 14 Aug 2015 07:31:29 +0000 (10:31 +0300)
include/functions2.php

index 9bbfc7b2278dcef2db3c32f7cf8c07c80391c384..b4018453ebd6413a108002ec95a5d4a8e80b42ee 100644 (file)
 
        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();