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
1 changed files with 1 additions and 1 deletions

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");