From: Andrew Dolgov Date: Fri, 14 Aug 2015 07:31:29 +0000 (+0300) Subject: search_to_sql: trim() input X-Git-Tag: 16.3~131 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=28539f6aafba872c5ca4ab3266357664b8b39a6b;p=tt-rss.git search_to_sql: trim() input --- 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();