]> git.wh0rd.org Git - tt-rss.git/commitdiff
search_to_sql: quote fallback search language
authorAndrew Dolgov <fox@fakecake.org>
Sat, 30 Dec 2017 13:27:05 +0000 (16:27 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Sat, 30 Dec 2017 13:27:05 +0000 (16:27 +0300)
include/functions.php

index 107a02843a43443a0c8a10dc1914d44046425b7b..649b77881024b42eedb3eaa17fbb74cb75cdb4a9 100644 (file)
                if ($search_language)
                        $search_language = $pdo->quote(mb_strtolower($search_language));
                else
-                       $search_language = "english";
+                       $search_language = $pdo->quote("english");
 
                foreach ($keywords as $k) {
                        if (strpos($k, "-") === 0) {