]> git.wh0rd.org Git - tt-rss.git/commitdiff
getFeedArticles: properly escape tags
authorAndrew Dolgov <fox@bah.org.ru>
Tue, 31 Aug 2010 07:30:28 +0000 (11:30 +0400)
committerAndrew Dolgov <fox@bah.org.ru>
Tue, 31 Aug 2010 07:30:28 +0000 (11:30 +0400)
functions.php

index 0252c0cfcd28052dcd15fb4dde527bc1eca9c4be..05eb85909c9e6c54b3b8fbe64448e5a78419c5ca 100644 (file)
                        return getCategoryUnread($link, $n_feed, $owner_uid);           
                } if ($feed != "0" && $n_feed == 0) {
 
+                       $feed = db_escape_string($feed);
+
                        $result = db_query($link, "SELECT SUM((SELECT COUNT(int_id)
                                FROM ttrss_user_entries,ttrss_entries WHERE int_id = post_int_id 
                                        AND ref_id = id AND $age_qpart