From a6bc72dfcc457d4a6feab8edf537095a3c5efd14 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 17 May 2008 17:43:53 +0100 Subject: [PATCH] feed browser: try to filter out feeds with login/pass in the URI (2) --- modules/pref-feed-browser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/pref-feed-browser.php b/modules/pref-feed-browser.php index 76d180bb5..28c6efe7f 100644 --- a/modules/pref-feed-browser.php +++ b/modules/pref-feed-browser.php @@ -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 "
";