From: Andrew Dolgov Date: Tue, 22 Aug 2006 15:52:27 +0000 (+0100) Subject: prevent feed chain-linking X-Git-Tag: 1.2.3~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8e83b64d80cb539063f44219c06eebaa943969ac;p=tt-rss.git prevent feed chain-linking --- diff --git a/backend.php b/backend.php index ddc73b97..c1431f1a 100644 --- a/backend.php +++ b/backend.php @@ -1290,7 +1290,8 @@ } $tmp_result = db_query($link, "SELECT id,title FROM ttrss_feeds - WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]." + WHERE id != '$feed_id' AND owner_uid = ".$_SESSION["uid"]." AND + (SELECT COUNT(id) FROM ttrss_feeds AS T2 WHERE T2.id = ttrss_feeds.parent_feed) = 0 $cat_qpart ORDER BY title"); if (db_num_rows($tmp_result) > 0) {