]> git.wh0rd.org Git - tt-rss.git/commitdiff
security fix for op=digestTest
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 04:03:26 +0000 (05:03 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 21 Aug 2006 04:03:26 +0000 (05:03 +0100)
backend.php
functions.php

index 74cc973036e6e2caa0415b7f881d9d89308d359f..430086bf3862706d1cfaeae48b565bcee1780773 100644 (file)
 
        if ($op == "digestTest") {
                header("Content-Type: text/plain");
+
                echo prepare_headlines_digest($link, $_SESSION["uid"]);
                $print_exec_time = false;
 
index 7ec46f097f987543c4e69e6647afd733f9ef54db..3dbe0f84b0fec57eab3355896578174af8c9333e 100644 (file)
                        WHERE 
                                ref_id = ttrss_entries.id AND feed_id = ttrss_feeds.id 
                                AND $interval_query
+                               AND ttrss_user_entries.owner_uid = $user_id
                                AND unread = true ORDER BY ttrss_feeds.title, date_entered DESC
                        LIMIT $limit");