]> git.wh0rd.org Git - tt-rss.git/commitdiff
feed browser: try to filter out feeds with login/pass in the URI (2)
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:43:53 +0000 (17:43 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 17 May 2008 16:43:53 +0000 (17:43 +0100)
modules/pref-feed-browser.php

index 76d180bb51891f23c12994447b9c0195799d2c0d..28c6efe7fe373b82240ae967b7dd9619a67b6754 100644 (file)
@@ -93,7 +93,8 @@
                $result = db_query($link, "SELECT feed_url,COUNT(id) AS subscribers
                        FROM ttrss_feeds WHERE (SELECT COUNT(id) = 0 FROM ttrss_feeds AS tf 
                                WHERE tf.feed_url = ttrss_feeds.feed_url 
-                                       AND (private IS true OR owner_uid = '$owner_uid')) GROUP BY feed_url 
+                               AND (private IS true OR feed_url LIKE '%:%@%/%' OR 
+                                       owner_uid = '$owner_uid')) GROUP BY feed_url 
                                                ORDER BY subscribers DESC LIMIT $limit");
 
                print "<br/>";