1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 01:21:28 +00:00

properly check for article ownership in getArticleFeed()

This commit is contained in:
Andrew Dolgov
2009-12-29 16:19:53 +03:00
parent ab197ae1de
commit a545dc31a4

View File

@@ -6475,7 +6475,7 @@
function getArticleFeed($link, $id) {
$result = db_query($link, "SELECT feed_id FROM ttrss_user_entries
WHERE ref_id = '$id'");
WHERE ref_id = '$id' AND owner_uid = " . $_SESSION["uid"]);
if (db_num_rows($result) != 0) {
return db_fetch_result($result, 0, "feed_id");