mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:25:55 +00:00
cats_of: enforce owner_uid
This commit is contained in:
@@ -1798,8 +1798,8 @@ class Feeds extends Handler_Protected {
|
|||||||
|
|
||||||
$sth = $pdo->prepare("SELECT DISTINCT cat_id, fc.parent_cat FROM ttrss_feeds f LEFT JOIN ttrss_feed_categories fc
|
$sth = $pdo->prepare("SELECT DISTINCT cat_id, fc.parent_cat FROM ttrss_feeds f LEFT JOIN ttrss_feed_categories fc
|
||||||
ON (fc.id = f.cat_id)
|
ON (fc.id = f.cat_id)
|
||||||
WHERE f.id IN ($feeds_qmarks)");
|
WHERE f.owner_uid = ? AND f.id IN ($feeds_qmarks)");
|
||||||
$sth->execute($feeds);
|
$sth->execute(array_merge([$owner_uid], $feeds));
|
||||||
|
|
||||||
$rv = [];
|
$rv = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user